uiactionsheetdelegate

UIActionsheet in Ios8

烈酒焚心 提交于 2020-01-21 12:19:18
问题 I have implemented actionsheet in my project having deploy target ios7 and less actionsheet works fine. UIActionsheet in Ios8 not working same as other version of Ios. How i make it working properly? Thanks 回答1: UIActionSheet is deprecated from iOS8, You should use UIAlertController. You have to choose the alert style: it could be an AlertView or a Sheet. Check here for Apple reference. See this for an example. 来源: https://stackoverflow.com/questions/26336252/uiactionsheet-in-ios8

Change Text Color of Items in UIActionSheet - iOS 8

拈花ヽ惹草 提交于 2019-12-17 06:35:13
问题 I had been using following code to change text color of items which I add in UIActionSheet .: - (void)willPresentActionSheet:(UIActionSheet *)actionSheet { for (UIView *subview in actionSheet.subviews) { if ([subview isKindOfClass:[UIButton class]]) { UIButton *button = (UIButton *)subview; [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; } } } It works fine in iOS7 , but in iOS8 the above code doesn't change the text color of items. Now my question is how to change

UIActionsheet in Ios8

爱⌒轻易说出口 提交于 2019-12-01 21:32:17
I have implemented actionsheet in my project having deploy target ios7 and less actionsheet works fine. UIActionsheet in Ios8 not working same as other version of Ios. How i make it working properly? Thanks UIActionSheet is deprecated from iOS8, You should use UIAlertController. You have to choose the alert style: it could be an AlertView or a Sheet. Check here for Apple reference. See this for an example. 来源: https://stackoverflow.com/questions/26336252/uiactionsheet-in-ios8