- 博客(9)
- 收藏
- 关注
原创 按钮添加边框
[Button.layer setMasksToBounds:YES]; [Button.layer setCornerRadius:10.0]; //设置矩形四个圆角半径 //边框宽度 [Button.layer setBorderWidth:1.0]; //设置边框颜色有两种方法:第一种如下: CGColorSpaceRef colorSpace = CGColorSpac
2016-09-06 11:16:14 729
原创 用户指引
NSUserDefaults *user = [NSUserDefaults standardUserDefaults];if (![[user objectForKey:@"isFirstRun"] isEqualToString:@"2"]) { //先判断全局的 是不是2,是不是运行过 不是2就是还没运行过 (没运行过就是空,肯定进判断)[user setObject:@"1" fo
2016-09-01 10:37:00 230
原创 Label的用法
//// ViewController.m// abc1Tests//// Created by show zh on 16/8/11.// Copyright © 2016年 show zh. All rights reserved.//#import "ViewController.h"#import @interface ViewController
2016-08-26 17:18:47 1367
转载 一些好用的demo
http://code4app.com/forum.php?mod=viewthread&tid=10143&extra=page%3D3%26filter%3Dsortid%26orderby%3Ddateline%26sortid%3D1精简版的库来呈现360度全景视频 :http://code4app.com/forum.php?mod=viewthread&tid=101
2016-08-24 17:08:45 246
原创 自定义弹框,纯文本,web,图文混合
//// SMDialog.h// ShowMuse//// Created by liuyonggang on 2/6/2016.// Copyright © 2016 show zh. All rights reserved.//#import #import @protocol SMDialogDelegate @optional/
2016-08-24 16:54:35 553
原创 label标题文字改变颜色
NSMutableAttributedString *noteStr = [[NSMutableAttributedString alloc] initWithString:@"输入一段话,123改变颜色"];NSRange redRange = NSMakeRange([[noteStr string] rangeOfString:@"123"].location, [[noteStr st
2016-08-24 16:49:40 1701
原创 按钮标题加下划线
NSMutableAttributedString *strs = [[NSMutableAttributedStringalloc] initWithString:str]; NSRange strRange = {0,[strslength]}; [strs addAttribute:NSForegroundColorAttributeNam
2016-08-24 15:18:41 425
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人