码迷,mamicode.com
首页 >  
搜索关键字:ltview    ( 16个结果
LTView 自定义视图 UIAlertView
这个控件是将UILabel和UITextField放到一个自定义的视图上,实现统一对两个控件进行操作1.首先在xcode上建一个LTView的类2.在LTView 的 .h文件中签订一个 UITextFieldDelegate 的协议3.在.h文件中建两个属性(UILabel 和UITextField)例子:@property(nonatomic ,retain)UILabel *myLabel;...
分类:其他好文   时间:2015-07-31 22:00:10    阅读次数:245
封装代理
LTView.h@interface LTView : UIView { UILabel *_lable; UITextField *_textField; }#pragma mark - 自定义初始化方法 - (instancetype)initWithFrame:(CGRect)frame text:(NSString *)te...
分类:其他好文   时间:2015-07-03 00:19:46    阅读次数:113
自己无聊封装一个 LTView
//// LTView.m// UI_Lesson_LTView//// Created by 李洪鹏 on 15/7/2.// Copyright (c) 2015年 李洪鹏. All rights reserved.//#import "LTView.h"@interface LTView() ...
分类:其他好文   时间:2015-07-03 00:08:02    阅读次数:136
关灯小游戏的基本代码实现
#import @interface LTView : UIView{ UILabel *_label; UITextField *_textField;}-(id)initWithFrame:(CGRect)frame text:(NSString *)text background:...
分类:其他好文   时间:2015-04-26 19:43:50    阅读次数:181
自定义视图窗口控件
#import<UIKit/UIKit.h>@interfaceLTView:UIView#warning创建需要的属性@property(nonatomic,retain)UILabel*mLabel;@property(nonatomic,retain)UITextField*mTextField;@end#import"LTView.h"@implementationLTView#warning第一步,重写初始化方法-(instancetype)initW..
分类:其他好文   时间:2015-04-21 11:28:04    阅读次数:135
自定义视图:视图的封装过程.
@interface LTView : UIView //1.是否采用安全模式 - (void)setSecureEntry:(BOOL)secureEntry; //2.设置键盘的类型 - (void)setKeyBoardType:(UIKeyboardType)keyBoardType; //3.设置textField代理 - (void)setDelegate:(id)delegate; ...
分类:其他好文   时间:2014-08-21 09:52:33    阅读次数:232
16条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!