
ios开发
zjwen1006
这个作者很懒,什么都没留下…
展开
-
妈咪爱——最新上架APP,好不好你说了算!!!
http://itunes.apple.com/cn/app/id468941250?mt=8原创 2011-10-10 21:41:28 · 545 阅读 · 0 评论 -
iphone调用系统电话、浏览器、地图、邮件等
openURL的使用方法:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];其中系统的appString有:1.Map http://maps.google.com/maps?q=Shanghai 2.Email mailto://myname@google.com 3.Tel t原创 2011-10-29 12:04:29 · 995 阅读 · 0 评论 -
让一个UIImageView响应点击事件
UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0,320, 44)];imgView.userInteractionEnabled = YES;UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWi原创 2011-10-29 12:14:16 · 7486 阅读 · 2 评论 -
iphone开发资源汇总
学习过程当中查找到的资料,做一个记录,以便更多朋友查看。开发的过程有时候是简单的,因为我们可以站在巨人的肩上,跳得更高,走得更远。如何用Facebook graphic api上传视频:http://developers.facebook.com/blog/post/532/Keychain保存数据封装:https://git转载 2011-11-18 09:42:23 · 942 阅读 · 0 评论 -
iPhone: Maintain visibility of form inputs – auto-scrolling views【保持表单输入的可视性 - 自动滚动】
When you develop forms or any screens with input fields, occasionally the inputs will be obscured by the keyboard when it appears. This is bad usability for the user who now has to input data without原创 2011-11-18 12:52:42 · 534 阅读 · 0 评论 -
代码判断邮箱是否合法
啥也不说直接上源代码:BOOL NSStringIsValidEmail(NSString *checkString) { NString *stricterFilterString = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+//.[A-Za-z]{2,4}"; NSString *laxString = @".+@.原创 2011-11-18 12:56:41 · 990 阅读 · 0 评论 -
iOS中NSArray的高级应用-过滤
NSArray可以用NSPredicate来过滤数组内容,代码://找出一个数组 NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *defaultPath = [[NSBundle mainBundle] resourcePath]; NSError *er原创 2011-11-18 13:08:02 · 1529 阅读 · 0 评论 -
与服务器同步数据时,如何做到只更新被修改数据?如何节约流量,
RT,大致步骤如下:1、Create a HTTP HEAD request.2、Read the "Last-Modified" header and convert the string to a NSDate.3、Read the last modification timestamp of the local file.4、Compare the two tim原创 2011-11-18 13:21:22 · 976 阅读 · 0 评论