2012年7月4日
摘要: iPad的UIActionSheet方法中没有cancel,点击popover其他区域即消失,但是,往往其他区域有Button,比如:UINavigationBarItem 的leftBarButton 或者rightBarButton,这时点击,就会出现程序崩掉。方法:(在点击的button方法中添加如下代码:)if ([self.actionSheet isVisible]) { [self.actionSheet dismissWithClickedButtonIndex:self.actionSheet.cancelButtonIndex animated:YES]; }此方法引用于: 阅读全文
posted @ 2012-07-04 19:01 tx天翔 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: - (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 = 阅读全文
posted @ 2012-07-04 12:56 tx天翔 阅读(4031) 评论(0) 推荐(0) 编辑