# IOS自定义控件 参考:http://www.oschina.net/question/262659_141737 ## 基本概念 UIView控件只是一个矩形的空白区域,并没有任何内容。iOS应用的其他UI控件都继承了UIView,这些UI控件都是在UIView提供的空白...
分类:
移动开发 时间:
2015-03-30 13:31:05
阅读次数:
135
原文地址:http://www.raywenderlich.com/2502/calayers-tutorial-for-ios-introduction-to-calayers-tutorial如果你已经在iPhone上做过开发,你可能对UIView和它的子类-Button,text,slider...
分类:
其他好文 时间:
2015-03-30 12:39:26
阅读次数:
137
iOS-target-action设计模式了解
target-action的设计模式的本质就是在host中产生的事件调用target的action方法。
下面我们通过一个UIView来实现UIButton的点击事件。
@interface CustomButton : UIView
-(void)addCustomButton:(id)target andSelector...
分类:
移动开发 时间:
2015-03-29 18:07:31
阅读次数:
154
一、UI概述UI(User Interface):用户界?,用户能看到的各种各样的?面元素。iOS App = 各种各样的UI控件 + 业务逻辑和算法二、UIView 在手机上显示的内容都是UIView或者是UIView的子类。UIView是用来与用户进行交流的层级上很重要的一个类。 UIVie.....
分类:
其他好文 时间:
2015-03-27 22:11:43
阅读次数:
191
UIVisualEffectView实现两种模糊效果:UIBlurEffect 和UIVibrancyEffect两者都是继承自UIView,前者放在任意的View里边都能对下册的视图渲染出模糊效果,后者是在前者的基础上对毛玻璃效果上层的视图做出高亮突出处理代码如下:@IBOutlet weak v...
分类:
移动开发 时间:
2015-03-21 01:06:46
阅读次数:
198
-(void)setExtraCellLineHidden: (UITableView *)tableView{ UIView *view = [UIView new]; view.backgroundColor = [UIColor clearColor]; [tableView...
分类:
其他好文 时间:
2015-03-20 20:22:04
阅读次数:
99
1.获得屏幕图像 - (UIImage *)imageFromView: (UIView *) theView { ?? ? ??? UIGraphicsBeginImageContext(theView.frame.size); ??? CGContextRef context = UIGraphicsGetCurrentContext(); ??? ...
分类:
移动开发 时间:
2015-03-20 19:00:09
阅读次数:
194
#import "ViewController.h"
//加入引用的头文件
#import "UIView+MJExtension.h"
#import "MJRefresh.h"
static
const CGFloat MJDuration =
2.0;
@interface
ViewController ()UITable...
分类:
其他好文 时间:
2015-03-20 16:23:24
阅读次数:
166
- (void)setExtraCellLineHidden: (UITableView *)tableView{
UIView *view =[ [UIView
alloc]init];
view.backgroundColor = [UIColor
clearColor];
[tableView
setTableFooterView:view];
...
分类:
移动开发 时间:
2015-03-20 14:30:58
阅读次数:
145
/**
* 返回传入veiw的所有层级结构
*
* @param view 需要获取层级结构的view
*
* @return 字符串
*/
- (NSString *)digView:(UIView *)view
{
if ([view isKindOfClass:[UITableViewCell class]]) return @"";
// 1.初始化
NS...
分类:
移动开发 时间:
2015-03-20 14:28:26
阅读次数:
143