摘要: 与java服务器不同 服务器使用php时 [formData appendPartWithFileData:UIImageJPEGRepresentation(_PhArray[i], 0.1f) name:@"file[]" fileName:[NSString stringWithFormat: 阅读全文
posted @ 2017-06-14 11:39 death3721 阅读(562) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - 设置navigation颜色 - (void)setNavigationBarColor { UINavigationBar *bar = [UINavigationBar appearance]; bar.barTintColor = [UIColor whiteColor]; //nav颜色 bar.tintColor = [UIColo... 阅读全文
posted @ 2017-06-08 13:35 death3721 阅读(313) 评论(0) 推荐(0) 编辑
摘要: float sortaPixel = 1.0/[UIScreen mainScreen].scale; UIView* line = [[UIView alloc]initWithFrame:CGRectMake(0,150,WIDTH,sortaPixel)]; line.backgroundColor = [UIColor purpleColor]; [sel... 阅读全文
posted @ 2016-12-27 16:00 death3721 阅读(124) 评论(0) 推荐(0) 编辑
摘要: _oldPriceLabel.text = @"3500"; _oldPriceLabel.textColor = [UIColor lightGrayColor]; NSMutableAttributedString *newPrice = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat... 阅读全文
posted @ 2016-11-01 19:21 death3721 阅读(255) 评论(0) 推荐(0) 编辑
摘要: //获取当前缓存大小 @property (nonatomic, assign) NSUInteger tmpSize; //获取缓存大小并储存 _tmpSize=[[SDImageCache sharedImageCache]getSize]; NSString* tempSize=[NSString stringWithFormat:@"%.2fM", self.tmpSi... 阅读全文
posted @ 2016-05-23 16:42 death3721 阅读(794) 评论(0) 推荐(0) 编辑
摘要: HSCButton.h HSCButton.m 阅读全文
posted @ 2016-05-18 17:34 death3721 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 默认状态栏为黑色,对于某些App不是很美观,变成白色很简单,只需要两个步骤。 1.在Info.plist中添加新项目,View controller-based status bar appearance,Boolean值为No. 2.在AppDelegate的- (BOOL)application 阅读全文
posted @ 2016-04-25 12:42 death3721 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 定义多参数函数 - 用func声明函数 func name(parameters) -> return type { function body } 定义无参数函数 func name() -> return type { function body } 定义无返回值函数 func name(par 阅读全文
posted @ 2016-04-21 17:52 death3721 阅读(549) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; //创建野狗实例化对象 用于随时监听数值变化 Wilddog *myRootRef = [[Wilddog alloc] initWithUrl:@"https://exile.wilddogio.com/weather"]; //监听键值 [myRootRef obse... 阅读全文
posted @ 2016-04-05 18:08 death3721 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 产生这个问题的原因是最新版本的CocoaPods把Podfile文件的书写格式改变了,官网推荐用如下格式书写: 其中把MyAppName换成工程名,最后使用 阅读全文
posted @ 2016-03-16 18:26 death3721 阅读(223) 评论(0) 推荐(0) 编辑