- 博客(8)
- 收藏
- 关注
原创 iOS 将控件设置为一边圆角一边直角
//以UIButton为例UIBezierPath *maskPath = [UIBezierPathbezierPathWithRoundedRect:button.boundsbyRoundingCorners:UIRectCornerBottomRight |UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)]
2017-06-30 16:09:16 3930
原创 iOS 运用富文本在UILabel上显示图片
NSMutableAttributedString * attrubedStr = [[NSMutableAttributedStringalloc]initWithString:[NSStringstringWithFormat:@"哈哈哈哈"]]; NSTextAttachment * attach = [[NSTextAttachmentalloc]
2017-06-30 15:18:26 2927 1
原创 iOS 在自定义tabbar上显示购物车的数量
//通过通知获取值- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch.
2017-06-28 11:52:00 1362
原创 iOS UICollectionViewCell点击无响应的解决方法
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ staticNSString * cellId = @"Cell"; UICollectionViewC
2017-06-26 11:29:22 5246
原创 iOS UIAlertController修改title颜色
[cancelAction setValue:[UIColorredColor] forKey:@"titleTextColor"];
2017-06-19 15:04:59 536
原创 iOS 打开指定的QQ聊天界面
//str就是你要打开的QQ号码,也就是你的客服号码。 NSString * str=@"123456789"; if ([[UIApplicationsharedApplication] canOpenURL:[NSURLURLWithString:@"mqq://"]]) { UIW
2017-06-19 14:18:44 808
原创 iOS 一键加入QQ群
获取加群组件的网址:http://qun.qq.com/join.html然后通过它获取到的代码:- (BOOL)joinGroup:(NSString *)groupUin key:(NSString *)key{ NSString *urlStr = [NSStringstringWithFormat:@"mqqapi://card
2017-06-19 14:12:25 3765
原创 iOS UITableView 设置默认选中行及其颜色
//在创建UITableView或获取数据的地方设置默认选中一行,这里默认选中第一行 [self.tableViewselectRowAtIndexPath:[NSIndexPathindexPathForItem:0inSection:0]animated:YESscrollPosition:UITableViewScrollPositionTop];
2017-06-15 15:41:22 1410
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人