UIAlertView、UIActionSheet兼容iOS8
链接地址:http://blog.csdn.net/nextstudio/article/details/39959895?utm_source=tuicool
1、前言
2、UIAlertView
- //title置为@""兼容iOS8
- UIAlertView *delAlert = [[[UIAlertView alloc] initWithTitle:@"" message:@"删除联系人?" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确认", nil nil] autorelease];
- [delAlert show];
3、UIActionSheet
- UIActionSheet *actionSheet = [[[UIActionSheet alloc] initWithTitle:nil
- delegate:self
- cancelButtonTitle:NSLocalizedString(@"Cancel", nil)
- destructiveButtonTitle:[NSString stringWithFormat:NSLocalizedString(@"call", nil),self.phoneNumber]
- otherButtonTitles:NSLocalizedString(@"add to contact", nil),nil]
- autorelease];
- actionSheet.tag = 1;
- [actionSheet showInView:self.view];
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。