
UI控件
文章平均质量分 77
SomeRain
这个作者很懒,什么都没留下…
展开
-
用UITouchView创建简单画板.点击颜色改变画笔颜色,有撤销键(UIButton简化后)
MainViewControl.m#import "MainViewController.h"#import "TouchView.h"@interface MainViewController ()@end@implementation MainViewController- (void)dealloc{ [super dealloc原创 2014-04-12 15:00:31 · 1225 阅读 · 1 评论 -
UITouchView实现关灯游戏
MainViewControl.m#import "MainViewController.h"#import "TouchView.h"@interface MainViewController ()@end@implementation MainViewController- (void) dealloc{ [super deallo原创 2014-04-12 15:04:35 · 700 阅读 · 1 评论 -
用UIScrollView实现相册,并设置滚动条消失,改变UIPageControl的颜色,实现循环滚动相册
#import @interface MainViewController : UIViewController{ UIScrollView * _scroll; UIPageControl * _page;}@property (nonatomic, copy) NSArray * arr;@end- (void)dealloc原创 2014-04-12 14:54:43 · 820 阅读 · 1 评论 -
两个TextField,输入第一个点击键盘右下角next,光标显示在第二个里面,并且右下角为完成按钮,点击收回键盘
#import @interface MainViewController : UIViewController{ UITextField * _field; UITextField * _field2;}@end原创 2014-04-12 14:51:38 · 1148 阅读 · 1 评论 -
IOS开发入门基本知识——(UIButton UIView UILabel的创建)
IOS开发入门基本知识——(UIButton UIView UILabel的创建)分类: ios ui oc 2013-06-28 19:24 290人阅读 评论(0)收藏 举报iOSUIButtonuilabeluiview在刚一开始,创建一个简单的加法计算器的话,通常需要加入基本的部件UIText添加方法 UItext 继承 UITextFiel转载 2014-04-09 15:02:51 · 1009 阅读 · 1 评论 -
IOS Label详细使用
UILabel *label = [[UILabelalloc] initWithFrame:CGRectMake(0, 0, 75, 40)]; //声明UIlbel并指定其位置和长宽 label.backgroundColor = [UIColorclearColor]; //设置label的背景色,这里设置为透明色。 label.font = [UIFont font转载 2014-04-03 15:41:26 · 1220 阅读 · 1 评论 -
IOS TextField 用法大全
IOS TextField用法大全2014-04-02 11:33:27标签:TextField 属性 用法 方法 大全//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只转载 2014-04-03 14:50:35 · 792 阅读 · 1 评论 -
IOS用CGContextRef画各种图形
IOS用CGContextRef画各种图形2014-04-08 13:12:43标签:representsdrawing 效果图 import 上下文 iOS绘制首先了解一下CGContextRef:An opaque type that represents a Quartz 2D drawing environment.Graphics转载 2014-04-12 15:18:35 · 737 阅读 · 1 评论 -
IOS里UI里的控件
UIView ---------------视图底层UITextField ----------- 输入框UILabel -------------- 显示框UIButton ----------------按钮UIAlertView------------ 警告框UIScrollView --------- 滚动视图UIPag转载 2014-04-12 15:55:46 · 695 阅读 · 1 评论 -
UIButton使用方法汇总
//按钮初始化类方法UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];//这里创建一个圆角矩形的按钮//按钮初始化实例方法UIButton *button1=[[UIButton alloc]initWithFrame:CGRectMake(50, 300, 200, 50)]; 能够转载 2014-04-15 09:21:44 · 926 阅读 · 0 评论 -
IOS 创建计算器
#import enum CALC_OPERATOR{ RESULT, ADD , REDUCE, RIDE, DIVIDE,};@interface AppDelegate : UIResponder @property (retain, nonatomic) UIWindow * window;//计算器相关原创 2014-04-03 19:23:02 · 703 阅读 · 1 评论