上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: #import <UIKit/UIKit.h> #import "AppDelegate.h" main 函数为程序入口 int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, arg 阅读全文
posted @ 2016-04-28 22:19 谢小锋 阅读(153) 评论(0) 推荐(0)
摘要: iOS7之后如果想让UIApplication 管理状态栏需要在info.plist 中设置View controller-based status bar appearance 为NO iOS7 之后状态栏是由控制器设置的 控制器中添加这个可以隐藏 -(BOOL)prefersStatusBarH 阅读全文
posted @ 2016-04-28 17:34 谢小锋 阅读(167) 评论(0) 推荐(0)
摘要: dispatch_queue_t queue=dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); NSString * from=@""; NSString * to =@""; NSFileManager * magr=[N 阅读全文
posted @ 2016-04-25 14:38 谢小锋 阅读(390) 评论(0) 推荐(0)
摘要: // [self performSelector:@selector(play:) withObject:self afterDelay:3]; // dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0*NSEC_PER_SEC 阅读全文
posted @ 2016-04-25 11:49 谢小锋 阅读(130) 评论(0) 推荐(0)
摘要: - (IBAction)action:(id)sender { NSLog(@"begin%@",[NSDate date]); NSDate * begin =[NSDate date]; NSData * dat =[NSData dataWithContentsOfURL:[NSURL URL 阅读全文
posted @ 2016-04-24 20:50 谢小锋 阅读(143) 评论(0) 推荐(0)
摘要: - (IBAction)action:(id)sender { count=100; self.thread1=[[NSThread alloc]initWithTarget:self selector:@selector(buy) object:@""]; self.thread2=[[NSThr 阅读全文
posted @ 2016-04-24 20:17 谢小锋 阅读(133) 评论(0) 推荐(0)
摘要: // // ViewController.m // 多线程 // // Created by 谢泽锋 on 16/4/24. // Copyright © 2016年 xiezefeng. All rights reserved. // #import "ViewController.h" #imp 阅读全文
posted @ 2016-04-24 16:43 谢小锋 阅读(101) 评论(0) 推荐(0)
摘要: #import <pthread.h> @interface ViewController () @end @implementation ViewController void * run(void *param){ for (int i=0; i<50000; i++) { NSLog(@"ru 阅读全文
posted @ 2016-04-24 16:05 谢小锋 阅读(130) 评论(0) 推荐(0)
摘要: @autoreleasepool { stu * s=[[[stu allow]init] autorelease];//可以不用release 自动释放会自动销毁 stu * s=[[[stu allow]init] autorelease]autorelease];错误不可以写两次 野指针错误 阅读全文
posted @ 2016-04-24 16:04 谢小锋 阅读(91) 评论(0) 推荐(0)
摘要: 现成框架 sencha-touch phoneGap jQuery mobile bootstrap 阅读全文
posted @ 2016-04-24 15:44 谢小锋 阅读(121) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页