摘要: NSString *dataStr = @"1453709220"; double lastactivityInterval = [model.addtime doubleValue]; NSDateFormatter* formatter = [[NSDateFormatter alloc... 阅读全文
posted @ 2016-01-26 11:34 i兮兮 阅读(413) 评论(0) 推荐(0)
摘要: iOS 从网络获取son并解析NSString* GXURL = PURL;GXURL = [GXURL stringByAppendingString:@"/index.php/Api/android_getRankByShow/eid/521"],GXURL;NSURL* url = [NSUR... 阅读全文
posted @ 2016-01-26 10:01 i兮兮 阅读(786) 评论(0) 推荐(0)
摘要: //获取当前日期 NSDate* date = [NSDate date]; NSDateFormatter* dateFormat = [[NSDateFormatter alloc] init]; [date... 阅读全文
posted @ 2016-01-26 10:00 i兮兮 阅读(403) 评论(0) 推荐(0)
摘要: #import "FirstHeaderReusableView.h"#import "FirstFooterReusableView.h"#define ITEMWIDTH ([UIScreen mainScreen].bounds.size.width - 30) / 2#define ITEM... 阅读全文
posted @ 2016-01-25 08:37 i兮兮 阅读(355) 评论(0) 推荐(0)
摘要: 每款App都要有自己的icon,和名称。需要的话还需要设置启动图。今天我们就来说一下如何设置这些。本篇博客暂不讨论关于尺寸的问题。icon:icon的设置还是很简单的根据上图的箭头和红框标记所示,首先在工程中选中“images”,然后选择“AppIcon”,把预先准备好的各个尺寸的icon拖到相应的... 阅读全文
posted @ 2016-01-23 16:47 i兮兮 阅读(1524) 评论(0) 推荐(0)
摘要: 在自定义的uiscroview里添加方法。左边侧滑:- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{CGPoint velocity = [(UIPanGestureRecognizer *)... 阅读全文
posted @ 2016-01-19 16:28 i兮兮 阅读(3239) 评论(0) 推荐(0)
摘要: 出现该问题的原因是没有将相应地图片文件copy到bundle里,解决办法很简单,点击项目名称,选择Build Phase,找到Copy Bundle Resources,点击“+”,将相应的资源文件添加即可。 阅读全文
posted @ 2016-01-18 08:48 i兮兮 阅读(1090) 评论(0) 推荐(0)
摘要: 错误代码:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s). 阅读全文
posted @ 2016-01-15 09:08 i兮兮 阅读(602) 评论(0) 推荐(0)
摘要: 在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found”的出错。一直提示指定UUID的pr... 阅读全文
posted @ 2016-01-15 09:06 i兮兮 阅读(241) 评论(0) 推荐(0)
摘要: 1.url编码ios中http请求遇到汉字的时候,需要转化成UTF-8,用到的方法是:NSString * encodingString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];2.ur... 阅读全文
posted @ 2016-01-14 16:03 i兮兮 阅读(161) 评论(0) 推荐(0)