4

I am trying to figure out how to add a checkmark to the right side of a button in a UIActionSheet. Is there a safe way to add this checkmark in UIActionSheet's Button? is there any simpler way to do add checkmark in UIActionsheet's buttons without using Of Private api ?

Harshil Vyas
  • 103
  • 9

1 Answers1

0

From iOS 8.0 you can use UIAlertController. In UIAlertController, each button item is know as UIAlertAction which add accordingly. UIAlertAction contains a runtime property called image which you can set as per your need.

 UIAlertAction *SwipeView =[UIAlertAction actionWithTitle:@"Swipe View" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {


}];
[SwipeView setValue:[UIImage imageNamed:@"tick_mark" ] forKey:@"_image"];
Jaha Rabari
  • 173
  • 8