随笔分类 -  IOS

排序UI实现--新手版
摘要:// // ViewController.m // SortWithLabel // // Created by whunf on 16/3/3. // Copyright © 2016年 whunf. All rights reserved. // #import "ViewController. 阅读全文

posted @ 2016-03-03 13:10 程序修炼之道 阅读(341) 评论(0) 推荐(0)

IOS 自定义控件 跟随鼠标的圆点
摘要:1 #import 2 3 @interface FKCustomView : UIView 4 5 @end 6 7 CustomView.m 8 #import "FKCustomView.h" 9 10 @implementation FKCustomView11 12 //定义两个... 阅读全文

posted @ 2015-11-28 17:01 程序修炼之道 阅读(452) 评论(0) 推荐(0)

ScrollView 分割屏幕效果
摘要:1 CGRect screentRect = self.view.bounds; 2 CGRect bigRect = screentRect; 3 bigRect.size.width *= 2.0; 4 // bigRect.size.height *= 2.0; 5 ... 阅读全文

posted @ 2015-11-28 16:57 程序修炼之道 阅读(304) 评论(0) 推荐(0)

简单同心圆效果
摘要:1 #import "BNRHypnosisView.h" 2 3 @implementation BNRHypnosisView 4 - (instancetype)initWithFrame:(CGRect)frame 5 { 6 self = [super initWithFram... 阅读全文

posted @ 2015-11-28 16:57 程序修炼之道 阅读(416) 评论(0) 推荐(0)

UITableViewController dequeueReusableCellWithIdentifier:indentifier forIndexPath:indexPath 报错
摘要:添加这一句 [tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:indentifier]; 加入到初始化tableview时UITableViewCell *cell = [tableView dequeue... 阅读全文

posted @ 2015-11-28 16:43 程序修炼之道 阅读(362) 评论(0) 推荐(0)

导航