摘要: 用携程机票为例: 携程联盟 飞机票、门票 联盟ID:278639 站点ID:739462 密钥KEY:BE57B925-E8CE-4AA2-AC8E-3EE4BBBB686F API_URL:openapi.ctrip.com http://open.ctrip.com/InlandFlight/O 阅读全文
posted @ 2015-12-17 19:00 TheYouth 阅读(521) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/fengmin/category/655850.html 博客园(后台保持运行,动态改变app图标,大文件下载,核心动画知识,iOS10推送,开发app前考虑的事情 ) 阅读全文
posted @ 2015-12-16 11:06 TheYouth 阅读(177) 评论(0) 推荐(0) 编辑
摘要: iphone5s软件无法安装解决方法一,点击设置 - 通用 - 访问限制,先关闭“安装应用程序”选项,再打开,把后台应用程序刷新也关了,测试。 iphone5s软件无法安装解决方法二,点击设置 - 通用 - 描述文件,进入后点“移除”,测试(如没有“描述文件”选项则此方法无效)。 如果上述两种方法还 阅读全文
posted @ 2015-12-07 15:17 TheYouth 阅读(337) 评论(0) 推荐(0) 编辑
摘要: UIButton *btn = [[UIButton alloc] init]; [btn setFrame:frame]; [btn setTitleColor:titleColor forState:UIControlStateNormal]; [btn setTitle:title forState:UIControlStateNormal]; [bt... 阅读全文
posted @ 2015-11-25 20:57 TheYouth 阅读(482) 评论(0) 推荐(0) 编辑
摘要: //在windows上显示 UIWindow *window = [UIApplication sharedApplication].keyWindow; [window addSubview:self.DiningDetailView]; self.DiningDetailView.alpha... 阅读全文
posted @ 2015-11-25 17:01 TheYouth 阅读(160) 评论(0) 推荐(0) 编辑
摘要: //创建一个分类 //.h #import <UIKit/UIKit.h> @interface UIScrollView (Touch) - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; -(void)touches 阅读全文
posted @ 2015-11-25 11:47 TheYouth 阅读(423) 评论(0) 推荐(0) 编辑
摘要: /**loadView加载,将系统的view变换成ScrollView*/ - (void)loadView{ [super loadView]; UIScrollView *mainScroll = [[UIScrollView alloc] initWithFrame:[UIScreen mai 阅读全文
posted @ 2015-11-25 11:41 TheYouth 阅读(374) 评论(0) 推荐(0) 编辑
摘要: //图片大小缩放 + (UIImage *) scaleImage:(UIImage *)image toSize:(CGSize)size { UIGraphicsBeginImageContext(size); //size 为CGSize类型,即你所需要的图片尺寸 [image drawInRect:CGRectMake(0, 0, size.width,... 阅读全文
posted @ 2015-11-20 16:58 TheYouth 阅读(200) 评论(0) 推荐(0) 编辑
摘要: //传进来时间字符串转换 + (NSString *) getChatTimeString:(NSString *)timeString { if (timeString==nil || timeString.length==0 || [timeString isEqualToString:@"0" 阅读全文
posted @ 2015-11-20 16:53 TheYouth 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #51147f 转换成RGB ,5*16+1 ,1*16+4,7*16+15 #A9A9A9 转换成RGB ,A*16+9 ,A*16+9,A*16+9 阅读全文
posted @ 2015-11-20 15:05 TheYouth 阅读(405) 评论(0) 推荐(0) 编辑