UIActionSheet checkmark

青春壹個敷衍的年華 提交于 2019-12-05 21:41:27
otherButtonTitles:@"√ 1", @"  2", 

Starting 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.

UIAlertActioin *action1 = [UIAlertAction actionWithTitle:@"1" style: UIAlertActionStyleDefault handler:(void (^)(UIAlertAction *action)) {
    [action setValue:[UIImage imageNamed:@"your-image-name"] forKey:@"_image"];
}];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!