自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 iOS 将控件设置为一边圆角一边直角

//以UIButton为例UIBezierPath *maskPath = [UIBezierPathbezierPathWithRoundedRect:button.boundsbyRoundingCorners:UIRectCornerBottomRight |UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)]

2017-06-30 16:09:16 3890

原创 iOS 运用富文本在UILabel上显示图片

NSMutableAttributedString * attrubedStr = [[NSMutableAttributedStringalloc]initWithString:[NSStringstringWithFormat:@"哈哈哈哈"]];        NSTextAttachment * attach = [[NSTextAttachmentalloc]

2017-06-30 15:18:26 2907 1

原创 iOS 在自定义tabbar上显示购物车的数量

//通过通知获取值- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    // Override point for customization after application launch.

2017-06-28 11:52:00 1338

原创 iOS UICollectionViewCell点击无响应的解决方法

-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{    staticNSString * cellId = @"Cell";    UICollectionViewC

2017-06-26 11:29:22 5173

原创 iOS UIAlertController修改title颜色

[cancelAction setValue:[UIColorredColor] forKey:@"titleTextColor"];

2017-06-19 15:04:59 518

原创 iOS 打开指定的QQ聊天界面

//str就是你要打开的QQ号码,也就是你的客服号码。        NSString  * str=@"123456789";                if ([[UIApplicationsharedApplication] canOpenURL:[NSURLURLWithString:@"mqq://"]]) {            UIW

2017-06-19 14:18:44 781

原创 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 3718

原创 iOS UITableView 设置默认选中行及其颜色

//在创建UITableView或获取数据的地方设置默认选中一行,这里默认选中第一行    [self.tableViewselectRowAtIndexPath:[NSIndexPathindexPathForItem:0inSection:0]animated:YESscrollPosition:UITableViewScrollPositionTop]; 

2017-06-15 15:41:22 1380

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除