摘要: #import "GoodsToSaleViewCell.h" #import "GoodsOnSaleController.h" #import "GoodsToSaleViewCell.h" @interface GoodsOnSaleController ()<UICollectionView 阅读全文
posted @ 2018-02-01 11:17 i兮兮 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 情况一:右侧两个按钮 //为导航栏添加右侧按钮1 UIBarButtonItem *right1 = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"my_share"] imageWithRenderingMode:UII 阅读全文
posted @ 2017-12-04 08:33 i兮兮 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 第一,定义一个全局的按钮变量 @property (nonatomic, strong) UIButton *selectedBtn; 第二,循环创建按钮 //好评中评差评按钮 _normalArr = [NSArray arrayWithObjects:@"goodBtn_normal",@"mi 阅读全文
posted @ 2017-11-28 21:27 i兮兮 阅读(608) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" typedef enum { ALPHA = 0, BLUE = 1, GREEN = 2, RED = 3 } PIXELS; @interface ViewController () @end @implementation ViewCont 阅读全文
posted @ 2017-11-14 14:28 i兮兮 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1:自带单个输入框的UIAlertController UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:@"请输入备注信息" preferredStyle:UIA 阅读全文
posted @ 2017-10-18 11:08 i兮兮 阅读(672) 评论(0) 推荐(0) 编辑
摘要: // // HMTMainViewController.m // UIScrollView // // Created by HMT on 14-6-25. // Copyright (c) 2014年 humingtao. All rights reserved. // #import "HMTM 阅读全文
posted @ 2017-10-17 11:15 i兮兮 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 第一种方案: 然后用文本编辑器打开project.pbxproj文件,看是否有svn冲突,可以搜索<<<<< 等查看 如果不是svn文件,工程其他人能打开,就自己的打不开,可以使用第二种方案 1.第一步 找到工程文件 第二步,找到project.xcworkspace文件 第三步: 删除xcuser 阅读全文
posted @ 2017-10-16 16:31 i兮兮 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: RelatedCompanyCell.h里 @property (strong, nonatomic) IBOutlet UIImageView *companyPhoto; @property (strong, nonatomic) IBOutlet UILabel *companyName; @ 阅读全文
posted @ 2017-09-27 10:40 i兮兮 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 纯代码设置Button或者其他View的边框属性 例: UIView* view = [[UIView alloc]init]; view.layer.borderWidth = 2.0; view.layer.masksToBounds = YES; view.layer.cornerRadius 阅读全文
posted @ 2017-09-27 08:27 i兮兮 阅读(2689) 评论(0) 推荐(0) 编辑
摘要: 通过xib创建cell的时候 一定要注意!!! 这个错误是在这个xib中在View同一层级出现了其他的控件,检查一下xib中左边的层级关系,让cell的view是唯一的控件就可以了,否则一执行 就会提示 "* Terminating app due to uncaught exception 'NS 阅读全文
posted @ 2017-09-21 15:32 i兮兮 阅读(574) 评论(0) 推荐(0) 编辑