博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年7月11日

摘要: - (void)viewDidLoad {[super viewDidLoad];UIImageView *fishAni=[[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];[self.view addSubview:fishAni];[fishAni release];//设置动画帧fishAni.animationImages=[NSArray arrayWithObjects:[UIImage imageNamed:@"1.jpg"],[UIImage imageNamed:@&quo 阅读全文

posted @ 2011-07-11 22:57 BradyChen 阅读(1634) 评论(0) 推荐(0) 编辑

摘要: scroll view 原理在滚动过程当中,其实是在修改原点坐标当手指触摸后, scroll view会暂时拦截触摸事件,使用一个计时器,假如在计时器到点后,没有发生手指移动事件,那么,scroll view发送tracking events到被点击的subview假如在计时器到点前,发生了移动事件,那么 scroll view 取消tracking自己发生滚动子类可以重载touchesShouldBegin:withEvent:inContentView: 决定自己是否接收touch事件pagingEnabled当值是YES,会自动滚动到subview的边界,默认是NOtouchesShou 阅读全文

posted @ 2011-07-11 22:56 BradyChen 阅读(1164) 评论(0) 推荐(0) 编辑

摘要: 上传可以用webservice 或者hppt的方式,http 方式 用 ASIFormDataRequest- (void)setData:(id)data withFileName:(NSString *)fileName andContentType:(NSString *)contentType forKey:(NSString *)key方法就可以了 阅读全文

posted @ 2011-07-11 22:43 BradyChen 阅读(1820) 评论(0) 推荐(0) 编辑

摘要: -(void) choosePhotoBySourceType: (UIImagePickerControllerCameraCaptureMode) sourceType{m_imagePickerController = [[[UIImagePickerController alloc] init] autorelease];m_imagePickerController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;m_imagePickerController.sourceType = UIImagePickerC 阅读全文

posted @ 2011-07-11 17:29 BradyChen 阅读(634) 评论(0) 推荐(0) 编辑