随笔分类 -  IOS NS

IOS 设置定时器
摘要:IOS 设置定时器 自动滚动视图 定时发送坐标信息 即时显示 时钟NSTimer *timer;- (void)start{//1second 调用一次 timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self select... 阅读全文

posted @ 2014-04-25 13:11 ACM_Someone like you 阅读(296) 评论(0) 推荐(0) 编辑

NSURLConnection 网络超时的那些事(转别人整理的)
摘要:NSURLConnection 网络超时的那些事(转别人整理的)在ios平台上做网络开发最常用的两个类:NSMutableURLRequest*urlRequest=[[NSMutableURLRequestalloc]initWithURL:urlcachePolicy:NSURLRequestU... 阅读全文

posted @ 2014-02-13 19:05 ACM_Someone like you 阅读(485) 评论(0) 推荐(0) 编辑

IOS 开发中判断NSString是否为空字符
摘要://当 请求网络 或者获取其他返回数据 首先 要做一次判断 数据是否为空防止程序崩溃程序崩溃 好比拿刀扎在程序员的心啊~if(为空){ 做提示对话框等操作}else{ 正常执行} - (BOOL) isBlankString:(NSString *)string {//判断字符串是否... 阅读全文

posted @ 2014-02-12 17:10 ACM_Someone like you 阅读(1378) 评论(0) 推荐(0) 编辑

IOS获取系统时间 NSDate
摘要://返回当前时间,精确到毫秒。- (NSString *)getTimeNow{ NSString* date; NSDateFormatter * formatter = [[NSDateFormatter alloc ] init]; //[formatter s... 阅读全文

posted @ 2014-01-25 15:31 ACM_Someone like you 阅读(741) 评论(0) 推荐(0) 编辑

ios 把毫秒值转换成日期 NSDate
摘要:ios 把毫秒值转换成日期 (比较好用)1343359790000这是毫秒值------最佳解决方案--------------------longlongtime=1343359790000LL;NSDate*date=[[[NSDatealloc]initWithTimeIntervalSinc... 阅读全文

posted @ 2014-01-24 18:35 ACM_Someone like you 阅读(2975) 评论(0) 推荐(0) 编辑

IOS NS 字符串 数组 字典 文件 动态 静态 操作
摘要:ios 常用字符串的操作//将NSData转化为NSString NSString* str = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];//将NSString 转化为NSData(NSStrin... 阅读全文

posted @ 2013-12-30 17:29 ACM_Someone like you 阅读(1094) 评论(1) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示