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];
特此小记一下
时间: 2024-10-12 20:29:46