随笔分类 -  iOS

上一页 1 ··· 4 5 6 7 8 9 下一页
摘要://记录过去5秒的平均流量字节/秒NSLog(@"%llu",[ASIHTTPRequest averageBandwidthUsedPerSecond]); 阅读全文
posted @ 2014-06-30 15:45 韦韦韦 阅读(196) 评论(0) 推荐(0)
摘要:1、error: macro names must be identifiers YourProject_prefix.pch 原因: 因为你弄脏了预处理器宏,在它处于的时候修改了它 解决方法: Configiration选择All Configirations,清空它 然后分别重新定义你的De... 阅读全文
posted @ 2014-06-27 11:22 韦韦韦 阅读(274) 评论(0) 推荐(0)
摘要:使用Xcode做WebApps时,使用UIWebview来调用一个页面,有时会遇到问题,其一就是编译的时候出现黄色感叹号的Warning,js文件都报错:warning: no rule to process file '$(PROJECT_DIR)/jquery-1.8.1.min.js' of ... 阅读全文
posted @ 2014-06-27 11:21 韦韦韦 阅读(194) 评论(0) 推荐(0)
摘要:iOS的本地通知服务需要使用NSLocalNotification,处理基于时间行为的通知。比如定时通知用户该学习了。使用NSLocalNotification一般需要考虑三个方面:scheduled time:时间周期,用来指定iOS系统发送通知的日期和时间;notification type:通... 阅读全文
posted @ 2014-06-03 13:57 韦韦韦 阅读(635) 评论(0) 推荐(0)
摘要://保存-(void)saveToUserDefaults:(NSString*)tosaveedStringwithKey:(NSString*)tosaveedKey{ NSUserDefaults*tmp=[NSUserDefaultsstandardUserDefaults]; if(t... 阅读全文
posted @ 2014-05-21 15:43 韦韦韦 阅读(439) 评论(0) 推荐(0)
摘要:第三方库WebViewJavascriptBridgehttp://blog.csdn.net/zhaoxy_thu/article/details/22794201Demo 阅读全文
posted @ 2014-05-21 12:49 韦韦韦 阅读(127) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/applenews/devnews/2014/0520/8485.htmlhttp://blog.csdn.net/totogo2010/article/details/8010231 阅读全文
posted @ 2014-05-21 09:21 韦韦韦 阅读(144) 评论(0) 推荐(0)
摘要:NSArray *viewControllers = self.navigationController.viewControllers;A *viewController = [viewControllers objectAtIndex:[viewControllers count] - 2 ]; 阅读全文
posted @ 2014-05-17 13:42 韦韦韦 阅读(432) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/hwj2012/article/details/7883711相关:http://blog.csdn.net/xufeidll/article/details/24022261http://www.2cto.com/kf/201404/294059.html... 阅读全文
posted @ 2014-05-09 14:27 韦韦韦 阅读(377) 评论(0) 推荐(0)
摘要:iOS终端请求服务端数据时,为了保证数据安全,我们一般会使用https协议加密,而对于iOS的网络编程,我们一般会使用开源框架:ASIHTTPRequest,但是如果使用传统的http方式,即使忽略验证的话,程序也会报[error-9844]的错误,具体错误如下描述:【Error Domain=AS... 阅读全文
posted @ 2014-05-05 13:57 韦韦韦 阅读(700) 评论(0) 推荐(0)
摘要:command+ N 快捷键 阅读全文
posted @ 2014-03-28 14:39 韦韦韦 阅读(373) 评论(0) 推荐(0)
摘要:google代码首页:http://code.google.com/p/panoramagl/库使用详细介绍:http://www.codeproject.com/KB/iPhone/panoramagl.aspx功能介绍:1、支持720全景展示2、支持重力加速度感应控制遇到主要问题及解决方法:1、No architectures to compile for (ARCHS=armv6 armv7, VALID_ARCHS=i386 ppc ppc64 ppc7400 ppc970 x86_64).==>需要添加armv6和armv7,如下图:[attachment=28204]2、gl 阅读全文
posted @ 2014-03-15 12:55 韦韦韦 阅读(846) 评论(0) 推荐(0)
摘要:(一)点击工具栏左上角点击 (苹果Logo)标志,关于本机 --> 更多信息 --> 系统报告 -->(左侧栏中)软件(二)打开终端,输入命令 uname -a 回车 x86_64 表示系统为64位 i686 表示系统32位的比如我的(三)在终端输入命令 ioreg -l -p IODeviceTree | grep "firmware-abi" | sed -e 's/[^0-9A-Z]//g' 输出:EFI64 --就说明系统是64位 输出:EFI32 --就说明系统是32位 阅读全文
posted @ 2014-03-13 15:51 韦韦韦 阅读(649) 评论(0) 推荐(0)
摘要:http://www.devdiv.com/iOS_iPhone-ASIHTTPRequest使用指南---_lt__lt_翻译稿_gt__gt_---连载-thread-93741-1-1.html 阅读全文
posted @ 2014-03-13 15:35 韦韦韦 阅读(118) 评论(0) 推荐(0)
摘要:block是可以捕捉上下文的特殊代码块。block可以访问定义在block外的变量,当在block中使用时,它就会为其在作用域内的每个标量变量创建一个副本。如果通过self拥有一个block,然后又在block中改变了实例变量,就会出错。例如:1 self.block = ^(NSString *aString)2 {3 self.aLabel.text = aString;4 });这段代码中,self保留了block,同时block又保留了self,会引发循环保留。很危险。如果未使用ARC,可以使用__block和__unsafe_unretained来复制一个未保留的引用副本。 ... 阅读全文
posted @ 2014-03-13 15:18 韦韦韦 阅读(1945) 评论(0) 推荐(0)
摘要:To locate the reference to theadvertisingIdentifier selector, please perform these steps to create an .ipa file of your app that matches what you submitted to the App Store:1. In the Xcode Organizer, instead of Submit to the iOS App Store, do Save for Enterprise or Ad-Hoc Deployment. That will creat 阅读全文
posted @ 2014-03-07 09:38 韦韦韦 阅读(983) 评论(0) 推荐(0)
摘要:最近应用因为这个问题被拒两次,理由如下:PLA 3.3.12We found your app uses the iOS Advertising Identifier but does not include ad functionality. This does not comply with the terms of theiOS Developer Program License Agreement, as required by theApp Store Review Guidelines.Specifically, section 3.3.12 of the iOS Develope 阅读全文
posted @ 2014-03-06 10:29 韦韦韦 阅读(584) 评论(0) 推荐(0)
摘要:苹果开发者客服电话地址:https://developer.apple.com/contact/phone.php中国大陆地区客服电话:4006 701 855中国香港地区客服电话:(852) 21129966中国台湾地区客服电话:0800 022 237 阅读全文
posted @ 2014-03-03 11:00 韦韦韦 阅读(1494) 评论(0) 推荐(0)
摘要:目录结构AppDelegateModelsMacroGeneralHelpersVendorsSectionsResources一个合理的目录结构首先应该是清晰的,让人一眼看上去就能大概了解目录的职责,且容易应对新的变化。AppDelegate这个目录下放的是AppDelegate.h(.m)文件,是整个应用的入口文件,所以单独拿出来。Models这个目录下放一些与数据相关的Model文件,里面大概是这样:Models |- BaseModel.h |- BaseModel.m |- CollectionModel.h |- CollectionModel.m ...Macro这个目... 阅读全文
posted @ 2014-02-28 14:54 韦韦韦 阅读(941) 评论(1) 推荐(0)
摘要:CFBundleVersion,标识(发布或未发布)的内部版本号。这是一个单调增加的字符串,包括一个或多个时期分隔的整数。CFBundleShortVersionString标识应用程序的发布版本号。该版本的版本号是三个时期分隔的整数组成的字符串。第一个整数代表重大修改的版本,如实现新的功能或重大变化的修订。第二个整数表示的修订,实现较突出的特点。第三个整数代表维护版本。该键的值不同于“CFBundleVersion”标识。版本号的管理是一个谨慎的事情,希望各位开发者了解其中的意义。比较小白,更新应用的时候遇到版本号CFBundleShortVersionString命名的错误,导致无法更新, 阅读全文
posted @ 2014-02-26 09:52 韦韦韦 阅读(325) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页