2012年6月3日
摘要: - (void) performDismiss: (NSTimer *)timer { [baseAlert dismissWithClickedButtonIndex:0 animated:NO];//important [baseAlert release]; baseAlert = NULL; } - (void) presentSheet { baseA... 阅读全文
posted @ 2012-06-03 23:10 easonoutlook 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 如果AViewContorller通过addSubview增加BViewController的view到界面中,当旋转iphone时,AViewController可以接到shouldAutorotateToInterfaceOrientation和- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfac... 阅读全文
posted @ 2012-06-03 23:05 easonoutlook 阅读(190) 评论(0) 推荐(0) 编辑
摘要: NSUserDefaults* defs = [NSUserDefaults standardUserDefaults]; NSArray* languages = [defs objectForKey:@"AppleLanguages"]; NSString* preferredLang = [languages objectAtIndex:0]; 阅读全文
posted @ 2012-06-03 18:10 easonoutlook 阅读(153) 评论(0) 推荐(0) 编辑
摘要: pageEnable属性 设置为YES的话后自动滚到下一页不会停在中间, 至于怎么判断当前页号 那只能根据页的frame 和 控件的 offset来判断了 CGFloat pageWidth = ImageScrollView.frame.size.width; page = floor((ImageScrollView.contentOffset.x - pageWidth / 2) ... 阅读全文
posted @ 2012-06-03 00:49 easonoutlook 阅读(1098) 评论(0) 推荐(0) 编辑