摘要: 1、生成ipa和plist文件plist文件内容如:项目描述URL应用程序 (.ipa) 文件的完整合格的 HTTP 或 HTTPS URL。display-image下载和安装过程中显示的 57 x 57 像素 PNG 图像。指定图像的完整合格的 URL。full-size-image用来在 iT... 阅读全文
posted @ 2015-10-14 14:09 斐济的夜光 阅读(1335) 评论(0) 推荐(0)
摘要: http://www.tekuba.net/program/289/ 阅读全文
posted @ 2015-09-23 13:50 斐济的夜光 阅读(119) 评论(0) 推荐(0)
摘要: ios 下两种生成唯一字符串的方法CFUUIDRef uuidRef =CFUUIDCreate(NULL);CFStringRef uuidStringRef =CFUUIDCreateString(NULL, uuidRef);CFRelease(uuidRef);NSString *uniqu... 阅读全文
posted @ 2015-08-27 17:29 斐济的夜光 阅读(707) 评论(0) 推荐(0)
摘要: 因为view有scrollview,所以view自动在导航栏下开始,需要设置下面这个属性self.automaticallyAdjustsScrollViewInsets = NO; 阅读全文
posted @ 2015-07-27 19:34 斐济的夜光 阅读(249) 评论(0) 推荐(0)
摘要: 在 iPhone 应用里,有时我们想强行把显示模式从纵屏改为横屏(反之亦然),CocoaChina 会员 “alienblue” 为我们提供了两种思路第一种:通过人为的办法改变view.transform的属性。具体办法:view.transform一般是View的旋转,拉伸移动等属性,类似view... 阅读全文
posted @ 2015-07-05 10:48 斐济的夜光 阅读(274) 评论(0) 推荐(0)
摘要: 1、创建应用 $ cordova create hello com.example.hello HelloWorld $ cd hello$ cordova platform add ios $ cordova build $ cordova build ios $ cordova prepare ... 阅读全文
posted @ 2015-06-09 16:18 斐济的夜光 阅读(151) 评论(0) 推荐(0)
摘要: build setting里的header search paths里增加动态库头文件的搜索路径如 /usr/include/libxml2还要在other linker flags里增加 -lxml2如果某个文件是非ARC,则在build phases里的compile sources里找到对应的... 阅读全文
posted @ 2015-05-24 17:41 斐济的夜光 阅读(192) 评论(0) 推荐(0)
摘要: 一个对象的方法里有block,block里要引用到对象会出现循环引用解法方法,在前面进行__weak声明如:__weak typeof(persion) weakPersion = persion; 阅读全文
posted @ 2015-05-14 21:18 斐济的夜光 阅读(196) 评论(0) 推荐(0)
摘要: Ø方法1NSArray *objs = [[NSBundle mainBundle] loadNibNamed:@"WNHAppView" owner:nil options:nil];这个方法会创建xib中的所有对象,并且将对象按顺序放到objs数组中Ø方法2bundle参数可以为nil,默认就是... 阅读全文
posted @ 2015-04-15 16:57 斐济的夜光 阅读(202) 评论(0) 推荐(0)
摘要: •方式一:有缓存(图片所占用的内存会一直停留在程序中)+ (UIImage *)imageNamed:(NSString *)name;name是图片的文件名•方式二:无缓存(图片所占用的内存会在一些特定操作后被清除)+ (UIImage *)imageWithContentsOfFile:(NSS... 阅读全文
posted @ 2015-04-15 16:41 斐济的夜光 阅读(120) 评论(0) 推荐(0)