2015年10月6日

hdoj 1022 Train Problem I

摘要: 1 #include 2 int main() 3 { 4 int n,i,j,k; 5 char in[10],out[10]; 6 int flag[20]; 7 while(scanf("%d %s %s",&n,in,out)!=EOF) 8 { 9... 阅读全文
posted @ 2015-10-06 00:33 张文建 阅读(210) 评论(0) 推荐(0)
2015年10月2日

[转载]iOS9 使用CoreLocation

摘要: 在iOS8之前,只要#import 引入CoreLocation.framework.@property (nonatomic, strong) CLLocationManager *locationManager;就可以使用位置信息。在iOS8之后,苹果对定位进行了一些修改,其中包括定位授权的方... 阅读全文
posted @ 2015-10-02 20:03 张文建 阅读(305) 评论(0) 推荐(0)
2015年9月8日

[Cocoa设计模式] 动态创建

摘要: Cocoa利用底层Objective-C运行时的很多特性,包括能够创建在应用程序编译时不存在的类的实例并在运行时动态加载和链接新类。诸如Ruby, Perl, Python之类的脚本语言就利用这种技术给Cocoa提供接口,这种模式的核心是返回具有指定名称的类对象的NSClassFromString(... 阅读全文
posted @ 2015-09-08 23:10 张文建 阅读(106) 评论(0) 推荐(0)