摘要:
跟着网上大神写了个,还有待提高啊:http://pan.baidu.com/s/1sjC5Pl7 阅读全文
摘要:
自定义一个控制器 CustomViewControllerAppDelegate(不用导入头文件很方便)funcapplication(application:UIApplication,didFinishLaunchingWithOptionslaunchOptions:[NSObject:An... 阅读全文
摘要:
importUIKitclassViewController:UIViewController{overridefuncviewDidLoad(){super.viewDidLoad()self.initView()}overridefuncdidReceiveMemoryWarning(){sup... 阅读全文
摘要:
28、使用block 块遍历整个数组。这个block 需要三个参数,id obj 表示数组中的元素。NSUInteger idx 标示元素的下标,bool *stop 是一个bool类型的参数。 官方描述如下:A reference to a Boolean value. The block can... 阅读全文
摘要:
http://www.bejson.com/ 阅读全文
摘要:
forindexin0..<2{println("\(index)")}forindexin0...2{println("\(index)")}vararr=["hah","xixi"]forvalueinarr{println("value:\(value)")}vari=0whilei<arr... 阅读全文
摘要:
http://letsswift.com/category/swiftguide/http://www.imooc.com/course/list?is_easy=3&c=ioshttp://www.swiftv.cn/http://open.163.com/special/opencourse/i... 阅读全文
摘要:
-(NSString*)jiexi:(NSString*)CSwebaddress:(NSString*)webaddress{NSError*error;NSString*regTags=[[NSStringalloc]initWithFormat:@"(^|&|\\?)+%@=+([^&]*)... 阅读全文
摘要:
demo链接:http://pan.baidu.com/s/1bnAVYcJ参考http://www.cnblogs.com/wayne23/p/4013522.html效果图: 阅读全文
摘要:
//找到Documents文件所在的路径NSArray*path=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);//取得第一个Documents文件夹的路径NSString*filePath... 阅读全文