上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
  2012年8月11日
摘要: //请求页所在地址 //https://open.t.qq.com/cgi-bin/oauth2/authorize?client_id=APP_KEY&response_type=token&redirect_uri=http://www.myurl.com/example NSString *requestString = [NSStringstringWithFormat... 阅读全文
posted @ 2012-08-11 16:29 easonoutlook 阅读(224) 评论(0) 推荐(0) 编辑
  2012年8月10日
摘要: 也是采用两种方法,先放出第一种方法 //https://upload.api.weibo.com/2/statuses/upload.json //https://api.weibo.com/2/statuses/update.json NSUserDefaults *info = [NSUserDefaultsstandardUserDefaults]; NS... 阅读全文
posted @ 2012-08-10 17:43 easonoutlook 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 这里以新浪的为例子进行说明,后面会陆续添加; 这里同时提供两种方式,一种是通过ASIFormData的方式来完成 NSURL *url = [[NSURLalloc] initWithString:@"https://api.weibo.com/2/statuses/update.json"]; // statuses/upload ASIFormDataRequest *reque... 阅读全文
posted @ 2012-08-10 17:40 easonoutlook 阅读(283) 评论(0) 推荐(0) 编辑
  2012年8月7日
摘要: Start up Terminal Type "cd ~/" to go to your home folder Type "touch .bash_profile" to create your new file. Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile"... 阅读全文
posted @ 2012-08-07 11:12 easonoutlook 阅读(516) 评论(0) 推荐(0) 编辑
  2012年8月6日
摘要: 做ios网络开发的肯定会用到苹果的官方库Reachability。ios5发布了,将项目升级到ios5的过程发一个warning: + (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress; 中 Declaration of 'struct sockaddr_in' will not be ... 阅读全文
posted @ 2012-08-06 13:10 easonoutlook 阅读(162) 评论(0) 推荐(0) 编辑
  2012年7月27日
摘要: 主要做的处理是,和服务器上的版本进行匹配,如果有更新,则弹出UIAlertView让用户选择 1、一般这样作需要有一个服务器,存放着升级信息,应用程序会定期去这个服务器下载升级信息,解析后作相应的处理 2、友盟iOS SDK 1.6.8 之后提供了按渠道做版本检查的功能,我的实现方案也基本上是这样的。程序启动时检查服务器相应渠道下的版本信息,然后和本地app版本信息做判断,需要更新的话... 阅读全文
posted @ 2012-07-27 16:36 easonoutlook 阅读(371) 评论(0) 推荐(0) 编辑
  2012年7月25日
摘要: 1、当button 小于等于两个时,只会平行的显示button,除非标题特长,这样不方便展示当button大于等于3个的时候,每行显示一个button,这样平行显示,界面统一2、为了使UIAlertView的message显得有调理,不能用 在每个想换行的位置直接使用\n的方式。要使用如下方式,stringWithFormat的方式构建NSString*string1=@"total time p... 阅读全文
posted @ 2012-07-25 16:54 easonoutlook 阅读(187) 评论(0) 推荐(0) 编辑
  2012年7月24日
摘要: 1、拷贝到目标目录的时候,如果文件已经存在则会直接失败 2、目标目录必须是文件 贴一段别人写 文章 今天我用NSFileManager 文件拷贝函数copyItemAtPath:toPath:error:拷贝文件的时候,一直出现一下错误:Error Domain=NSPOSIXErrorDomain Code=17 “The operation couldn’t be completed. Fi... 阅读全文
posted @ 2012-07-24 11:04 easonoutlook 阅读(2261) 评论(0) 推荐(0) 编辑
  2012年7月23日
摘要: iOS程序有固定的文件访问限制,只能在自己的沙盒内。 UIImage *img=[UIImage imageNamed:@"cellicon.png"]; 这段代码从相对路径加载了一个png图片资源作为UIImage对象,没有任何问题。因为它在内部已经偷偷得帮你把路径转化为相对路径了,你还不知道吧! 接下来,如果要加载一些自定义格式的文件或者数据,就会出现相对路径和绝对路径的... 阅读全文
posted @ 2012-07-23 10:13 easonoutlook 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1、通过NSBundle来读取文件,mainBundle获取的是该app所在的目录 [[NSBundle mainBundle] pathForResource:@"SysMessageRing"ofType:@"plist"]// plistPath 2、可以通过fileManager获取该目录下的所有文件,来查看获取目录是否正确 [[NSFileManagerdefaultManager]... 阅读全文
posted @ 2012-07-23 10:11 easonoutlook 阅读(287) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页