摘要: - (void) performDismiss: (NSTimer *)timer{[baseAlert dismissWithClickedButtonIndex:0 animated:NO];//important[baseAlert release];baseAlert = NULL;}- (void) presentSheet{baseAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"\nMessage to user with asynchronous information&qu 阅读全文
posted @ 2012-06-03 23:10 worldworld 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 如果AViewContorller通过addSubview增加BViewController的view到界面中,当旋转iphone时,AViewController可以接到shouldAutorotateToInterfaceOrientation和- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration消息,但是在BViewController中是没有办法接到这个二个消息的(目前我发现是这样的),但是如果是通 阅读全文
posted @ 2012-06-03 23:05 worldworld 阅读(142) 评论(0) 推荐(0) 编辑
摘要: NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];NSArray* languages = [defs objectForKey:@"AppleLanguages"];NSString* preferredLang = [languages objectAtIndex:0]; 阅读全文
posted @ 2012-06-03 18:10 worldworld 阅读(205) 评论(0) 推荐(0) 编辑
摘要: pageEnable属性 设置为YES的话后自动滚到下一页不会停在中间, 至于怎么判断当前页号 那只能根据页的frame 和 控件的 offset来判断了CGFloat pageWidth = ImageScrollView.frame.size.width;page = floor((ImageScrollView.contentOffset.x - pageWidth / 2) / pageWidth) + 1;NSLog(@"Image: %d",page) ;得到当前pag 阅读全文
posted @ 2012-06-03 00:49 worldworld 阅读(369) 评论(0) 推荐(0) 编辑