上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: NSString * string = [NSString stringWithFormat:@"您的号码是%@号",[self backString:dic[@"rankNumber"]]]; NSString * rankNumber = [NSString stringWithFormat:@"%@",[self backString:dic[@"rankNumber"]... 阅读全文
posted @ 2016-11-11 10:23 代码始我快乐 阅读(3109) 评论(0) 推荐(0)
摘要: 快速部署:简单的来说,就是不用更改开发、测试、正式环境下的 url ,来实现在同一台测试手机快速部署三种项目状态. Bundle ID一样只会出现一个app;不一样会出现三个app; 具体步骤: 一、复制 主项目。 1、Duplicate. 二、三处需要改名字. 进行关联plist 三、更新app图 阅读全文
posted @ 2016-11-10 16:57 代码始我快乐 阅读(2373) 评论(0) 推荐(0)
摘要: // ViewController.m #import "ViewController.h" #import "ScrollSliderView.h" @interface ViewController () { NSArray *titleArray; } @end @implementation ViewController - (void)viewDidLoad { ... 阅读全文
posted @ 2016-08-23 11:17 代码始我快乐 阅读(723) 评论(0) 推荐(0)
摘要: NSPredicate 查询 /* 1、字符串本身SELF BEGINSWITH 以某个字符串开始 CONTAINS 包含某个字符串 ENDSWITH 以某个字符串结尾 */ NSString * name1 = [NSString stringWithFormat:@"北京"]; NSArray * arr1 = @... 阅读全文
posted @ 2016-08-19 15:15 代码始我快乐 阅读(163) 评论(0) 推荐(0)
摘要: /* 升序、降序 */ NSArray * array41 = @[@4,@5,@2,@6,@3,@7,@8]; NSArray * array42 = [[NSArray alloc]init]; array42 = [array41 sortedArrayUsingComparator:^NSComparisonResult(id obj1... 阅读全文
posted @ 2016-08-19 15:15 代码始我快乐 阅读(665) 评论(0) 推荐(0)
摘要: // ViewController.swift // Block import UIKit class ViewController: UIViewController { var myLabel = UILabel() override func viewDidLoad() { super.viewDidLoad() sel... 阅读全文
posted @ 2016-08-17 14:48 代码始我快乐 阅读(149) 评论(0) 推荐(0)
摘要: let stringurl = "http://www.huiyunche.cn/kyleuat/banner/list" Alamofire.request(.GET,stringurl,parameters:nil) .responseJSON { response in if let JSON = re... 阅读全文
posted @ 2016-08-17 14:43 代码始我快乐 阅读(174) 评论(0) 推荐(0)
摘要: let label = UILabel() label.frame = CGRectMake(100, 100, 100, 100) label.backgroundColor = UIColor.cyanColor() label.text = "SnapKit" label.textAlignment = NST... 阅读全文
posted @ 2016-08-17 14:21 代码始我快乐 阅读(313) 评论(0) 推荐(0)
摘要: let image = UIImageView() image.sd_setImageWithURL(NSURL(string:"http://qiniu.test.huiyunche.cn/banner1.jpg?e=1471421220&token=wQknukoe-lwcjLKEnsBz-Br 阅读全文
posted @ 2016-08-17 14:20 代码始我快乐 阅读(126) 评论(0) 推荐(0)
摘要: 一、查询第三方版本号 pod search SDWebImage 二、项目添加pod 1、在终端打开项目路径 2、输入 pod init 生成Podfile 三、在Podfile输入需要的第三方 # Uncomment this line to define a global platform fo 阅读全文
posted @ 2016-08-17 10:56 代码始我快乐 阅读(217) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页