2012年6月6日
摘要: float coordinate =2.0f;[nodeScrollView setContentOffset:CGPointMake(460* coordinate,0) animated:YES]; http://stackoverflow.com/questions/4436745/uiscrollview-with-next-and-previous-button-action f... 阅读全文
posted @ 2012-06-06 14:12 easonoutlook 阅读(358) 评论(0) 推荐(0) 编辑
摘要: NSFileManager *fileManager = [NSFileManagerdefaultManager]; [fileManager contentsOfDirectoryAtPath:resourcePath error:nil] DLog(@"files is %@",[fileManager contentsOfDirectoryAtPath:resourcePath err... 阅读全文
posted @ 2012-06-06 13:01 easonoutlook 阅读(147) 评论(0) 推荐(0) 编辑
  2012年6月5日
摘要: 这个问题的实质应该是在非主线程中 直接修改 界面。 如果把alertView 发在主线程调用就ok了。==============非主线程[self performSelectorOnMainThread:@selector(onResp*****eInMainThread) withObject:nil waitUntilDone:YES];============= 主线程-(void)on... 阅读全文
posted @ 2012-06-05 17:26 easonoutlook 阅读(193) 评论(0) 推荐(0) 编辑
摘要: static RootViewController *sharedRootController = nil; +(RootViewController *) sharedController{ @synchronized(self){ if (sharedRootController == nil) { sharedRootController ... 阅读全文
posted @ 2012-06-05 17:25 easonoutlook 阅读(131) 评论(0) 推荐(0) 编辑
  2012年6月4日
摘要: Filename Dimensi*****Default-Portrait.png * 768w x 1004hDefault-PortraitUpsideDown.png 768w x 1004hDefault-Landscape.png ** 1024w x 748hDefault-LandscapeLeft.png 1024w x 748hDefaul... 阅读全文
posted @ 2012-06-04 09:33 easonoutlook 阅读(146) 评论(0) 推荐(0) 编辑
  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 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 如果AViewContorller通过addSubview增加BViewController的view到界面中,当旋转iphone时,AViewController可以接到shouldAutorotateToInterfaceOrientation和- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfac... 阅读全文
posted @ 2012-06-03 23:05 easonoutlook 阅读(188) 评论(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 阅读(1097) 评论(0) 推荐(0) 编辑
  2012年6月1日
摘要: [fmt setDateFormat:@"yyyy/MM/dd hh:mm:ss:SSS"]; NSString *string=[fmt stringFromDate:nsDate]; NSDateFormatter *dateFormatter = [[[NSDateFormatteralloc] init] autorelease]; [dateFormatter setD... 阅读全文
posted @ 2012-06-01 18:24 easonoutlook 阅读(236) 评论(0) 推荐(0) 编辑