JNYJ

JNYJ - IOS - DEV

 

2011年3月4日

怎么自动移出被键盘覆盖(遮盖)的控件 NO.2(Category),适用于UIViewController

摘要: @implementation UIViewController(AnimationFashion)#pragma mark #pragma mark implementation//regard the control as child view of self by default.- (void) scrollViewIfControlCoveredByKeyboard:(UIControl *)control hasStatusBar:(BOOL)hasStatusBar hasNavigationBar:(BOOL)hasNavBar{ CGFloat keyboardHeight 阅读全文

posted @ 2011-03-04 17:40 JNYJ 阅读(623) 评论(0) 推荐(0) 编辑

怎么自动移出被键盘覆盖(遮盖)的控件 NO.1(Category),适用于UITableView

摘要: @implementation UITableView(AnimationFashion)- (void) scrollViewIfControlCoveredByKeyboard:(UIControl *)control atIndexPath:(NSIndexPath *)indexPath hasStatusBar:(BOOL)hasStatusBar hasNavigationBar:(BOOL)hasNavBar{ CGFloat keyboardHeight = 216.0f; CGFloat navBarHeight = 44.0f; CGFloat statusBarHeigh 阅读全文

posted @ 2011-03-04 17:36 JNYJ 阅读(817) 评论(0) 推荐(1) 编辑

导航