摘要:
将UILabel或UITextView中的文字设置为超链接 判断是否符合超链接格式 (BOOL)isUrlValid:(NSString )urlStr{ NSLog(@" 判断url是否合法 "); NSError error; NSString regulaStr = @"((http{0,1} 阅读全文
摘要:
UIStackView简介 (IOS 9) 概述 Stack View的核心便是方便垂直或水平排布多个subview, Stack View最有用的就是它会自动为每个subview创建和添加Auto Layout constraints。当然你可以控制subview的大小和位置。可以通过选项配置su 阅读全文
摘要:
UICollectionView自定义布局 封面布局 布局文件: MKCoverFlowLayout.h import @interface MKCoverFlowLayout : UICollectionViewFlowLayout @end MKCoverFlowLayout.m import 阅读全文
摘要:
自定义的UICollectionViewLayout简介 UICollectionViewLayout的功能为向UICollectionView提供布局信息,不仅包括cell的布局信息,也包括追加视图和装饰视图的布局信息。 实现一个自定义layout的常规做法是继承UICollectionViewL 阅读全文