摘要:
iPad的UIActionSheet方法中没有cancel,点击popover其他区域即消失,但是,往往其他区域有Button,比如:UINavigationBarItem 的leftBarButton 或者rightBarButton,这时点击,就会出现程序崩掉。方法:(在点击的button方法中添加如下代码:)if ([self.actionSheet isVisible]) { [self.actionSheet dismissWithClickedButtonIndex:self.actionSheet.cancelButtonIndex animated:YES]; }此方法引用于: 阅读全文
摘要:
- (void)keyboardWillChangeFrame:(NSNotification *)notification{ // if(!isDisplayFaceBox){ #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { #endif #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_3_2 NSValue *keyboardBoundsValue = 阅读全文