- 博客(8)
- 收藏
- 关注
原创 一般视图的排布
CGFloat width = ("底部视图的宽度" -5.0f) / 5.0f; CGFloat height =90.0f; CGFloat marginTop =10.0f; int row =0; int list =0; for (int i =0; i 10; i++) {
2017-06-29 17:39:55 519
原创 UINavigationBar 和 UITabBarItem 属性设置
// 导航栏的背景颜色[[UINavigationBarappearance] setBarTintColor:[UIColorcolorWithRed:25 /255.0f green:170 /255.0f blue:138 /255.0f alpha:1]];// 导航条按钮的颜色[[UINavigationBarapp
2017-06-24 14:04:19 206
原创 UIWebView 页面处理
- (void)webViewDidFinishLoad:(UIWebView *)webView { // 定义JS字符串 NSString *script = [NSStringstringWithFormat:@"var script = document.createElement('script');"
2017-06-15 11:43:38 154
原创 AVAudioRecorder 录音
.h 文件@interface ViewController : UIViewController AVAudioRecorderDelegate>{ // 用来录音 AVAudioRecorder *recoder; // 设置定时检测, 用来监听当前音量大小, 控制话筒图片. NSTimer *ti
2017-06-14 15:41:35 408
原创 UITextField placeholder 文字居中
// placeholder 居中显示NSMutableParagraphStyle *style = [[NSMutableParagraphStylealloc] init];style.alignment =NSTextAlignmentCenter;NSAttributedString *attri = [[NSAttributedStringall
2017-06-12 17:29:22 702
原创 iOS 开发系统自带摇一摇
- (void)viewDidLoad { [superviewDidLoad]; // 设置允许摇一摇功能 [UIApplicationsharedApplication].applicationSupportsShakeToEdit =YES; // 并让自己成为第一相应者 [self
2017-06-09 11:17:38 495
原创 iOS 开发 righBarButtonItems
// 添加 UIButton *add = [UIButtonbuttonWithType:UIButtonTypeCustom]; add.backgroundColor = [UIColorpurpleColor]; add.frame =CGRectMake(0,0, 30,30); [add addTarget:selfaction:
2017-06-06 11:04:46 194
原创 iOS 开发获取验证码倒计时
// GCD 方式- (void)xl_sendEcurityCode:(UIButton *)sender { // 开启倒计时效果 __blockNSInteger time = 59; //倒计时时间 dispatch_queue_t queue =dispatch_get_global_queue(DISPA
2017-06-05 13:54:45 592
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人