- 博客(11)
- 收藏
- 关注
原创 objective-c block
1.cell定义blocktypedef void(^LLDefaulButtomActionBlock)(AddrListCell* cell); @property(nonatomic,copy) LLDefaulButtomActionBlock editBlock;- (void)editAddressButtonActionBlock:(LLDefaulButtomActionBlo
2017-12-29 13:28:43 294
原创 UICollectionView组标题
1.//设置collectionView头视图的大小static NSString *sectionHeaderID =@”sechederview”;flowLayout.headerReferenceSize=CGSizeMake(KScreenWidth,40); 2.//注册分组头视图[collectionView registerClass:[UICollecti
2017-12-28 16:49:59 1480
原创 iOS与vue交互(OC传值到Vue.js)
1、原生调用vue.js 某个vue组件下的方法。 methods:{ hwajax:function (strings) { this.tokenString=strings; } } mounted:function () { window.hwajax ...
2017-12-26 18:37:23 9314 2
原创 实现UICollectionViewCell自适应文字宽度和选中项目
1.collectionView- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { for (AutoCellModel * model in self.dataArray) { model.isSelected
2017-12-21 15:37:00 3301 1
原创 vue三级界面使用better-scroll滚动
<van-nav-bar title="商品详情" leftText="返回" leftArrow @click-left="backAction" />
2017-12-18 18:23:02 516
原创 iOS 导航栏 搜索
设置导航栏的titleView为搜索框 UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth -120, 40)]; UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, title
2017-12-13 10:00:36 842
原创 HWTabBarController选中事件
-(BOOL)tabBarController:(UITabBarController )tabBarController shouldSelectViewController:(UIViewController )viewController { }返回值YES,直接通过。返回值NO拦截objective-c if (![viewController isKindOfClass:[UINavi
2017-12-08 11:13:22 250
原创 localStorage使用
1.登陆存储tokenif(window.localStorage){ const tokenString = JSON.stringify(this.hwdToken) window.localStorage.setItem('hwdtoken',tokenString); Toast({ message: '登录成功!', position: 'm
2017-12-07 10:30:13 376
原创 iOS与vue交互(点击网页传值到OC)
1.初始化UIWebView - (void)viewDidLoad { [super viewDidLoad]; UIWebView*webV=[[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds]; _webView=webV; webV.backgroundColor=[UICo...
2017-12-07 10:28:44 3260 2
原创 自定义UITableView
自定义UITableView1.controllerSpecialSaleView *view = [[SpecialSaleView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight-64-44-49)];view.backgroundColor = [UIColor redColor];[self.view a
2017-12-06 10:36:43 433
原创 自定义UICollectionView+HeaderView
自定义collectionView-header 控制器view初始化view RecommendGridView* homeGridView = [[RecommendGridView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight-64-44-49)]; homeGridView.backgroundCo
2017-12-05 09:37:22 2398 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人