键/值编码中的基本调用包括-valueForKey:和-setValue:forKey:.以字符串的形式向对象发送消息。对于KVC,Cocoa自动放入和取出标量值。也就是说,当使用setValueForKey时,它自动将标量值(int,float和struct)放入NSNumber和NSValue中...
分类:
其他好文 时间:
2015-03-12 22:08:54
阅读次数:
147
在Cocoa中,有一类名为属性列表的对象,常简称为plist.这些列表包含Cocoa知道如何操作的一组对象。具体来讲,Cocoa知道如何将它们保存到文件中并进行加载。属性列表类包括NSArray,NSDictionary,NSString,NSNumber,NSDate和NSData,以及它们的变体...
分类:
其他好文 时间:
2015-03-12 20:50:48
阅读次数:
122
在使用git init --bare 进行建立裸仓库之后,在使用git 其它的命令都会出现fatal:This operation must be run in a work tree 问题,处理方法:
先touch readme 因为在创建裸仓库时,没有生成readme 文件,出现不能提交的情况。之后就可以使用git init,git add readme
git com...
分类:
其他好文 时间:
2015-03-12 19:16:45
阅读次数:
1474
Model File Format and Versions:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/vmModelFormat.html Multiple .xcdatamodeld core data files, how to ...
分类:
其他好文 时间:
2015-03-12 17:27:20
阅读次数:
264
目录结构AppDelegateModelsMacroGeneralHelpersVendorsSectionsResources一个合理的目录结构首先应该是清晰的,让人一眼看上去就能大概了解目录的职责,且容易应对新的变化。AppDelegate这个目录下放的是AppDelegate.h(.m)文件,...
分类:
移动开发 时间:
2015-03-12 14:34:49
阅读次数:
182
将所有mp3都复制到一个目录find ~/Music/iTunes/ -name *.mp3 -exec cp {} ~/Desktop/Music/ \;新建文件: touch index.html查看IP:ifconfig查看文件的全路径:pwd新建文件夹:mkdir filename移动文件:...
分类:
其他好文 时间:
2015-03-12 11:02:15
阅读次数:
138
Xcode6 下实现界面切换
1.新建一个工程T Xcode ——> File——>New--->Project--->Single View Application
2. 添加一个三个Cocoa Touch Class 基类为UIViewController类,SwitchViewController、FirstViewController、SecondViewControl...
分类:
其他好文 时间:
2015-03-11 14:47:01
阅读次数:
126
adb -d shell monkey -s 5 -p com.xxx.xx --throttle 500 --pct-touch 15 --pct-motion 10 --pct-trackball 15 --pct-nav 25 --pct-majornav 15 --pct-appswitch 2 --pct-anyevent 16 --monitor-native-crashes -...
分类:
其他好文 时间:
2015-03-11 13:13:16
阅读次数:
205
Android Touch Screen 与传统Click Touch Screen不同,会有一些手势(Gesture),例如Fling,Scroll等等。这些Gesture会使用户体验大大提升。Android中的 Gesture识别(detector)是通过GestureDetector.OnGe...
分类:
移动开发 时间:
2015-03-11 12:38:34
阅读次数:
149
支持系统和机型:
iOS系统的指纹识别功能最低支持的机型为iPhone 5s,最低支持系统为iOS 8,虽然安装iOS 7系统的5s机型可以使用系统提供的指纹解锁功能,但由于API并未开放,所以理论上第三方软件不可使用。
依赖框架:
LocalAuthentication.framework
#import
注意事项:做iOS 8以下版本适配时,务必进行API验证,避免调用相关API...
分类:
移动开发 时间:
2015-03-11 10:54:56
阅读次数:
132