码迷,mamicode.com
首页 > 移动开发 > 详细

iOS UIActionSheet在7.1和8.3之间的不同

时间:2015-08-10 18:18:10      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

iOS7.1版本中:使用UIActionsheet显示在当前view时会触发当前view的 ViewWillLayoutSubViews

8.3中不会触发自动布局

    UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil
                                                             delegate:self
                                                    cancelButtonTitle:@"cancel"
                                               destructiveButtonTitle:nil
                                                    otherButtonTitles:@"single article", @"serial article", nil
                                  ];
    actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
    
    [actionSheet showInView:self.view];

特此小记一下

iOS UIActionSheet在7.1和8.3之间的不同

标签:

原文地址:http://my.oschina.net/littleDog/blog/490245

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!