- 博客(7)
- 收藏
- 关注
转载 通过UIScrollView和UIPageControl结合制作相册
1、创建UIScrollView视图: UIScrollView *aScrollView = [[[UIScrollView alloc] initWithFrame:self.view.bounds] autorelease]; aScrollView.backgroundColor = [UIColor redColor]; [self.view ...
2015-10-23 21:26:00 90
转载 UIControl子类之间的关联实例
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UISegmentedControl * segmentedControl = [[[UISegmentedControl alloc] initWithItems:@...
2015-10-22 20:44:00 70
转载 手势识别器的使用
// 1、轻拍手势识别器的使用 UITapGestureRecognizer *tapGesture=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(handleTapGesture:)]; //设置需要轻拍的次数 tapGesture.numberOfTapsR...
2015-10-22 15:31:00 91
转载 圆形头像图标设计
#import "MainViewController.h"@interface MainViewController ()@end@implementation MainViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup aft...
2015-10-22 15:07:00 105
转载 简单界面设置及切换
第一步:创建视图控制器并创建LoginViewController、RegistViewController、PasswordViewController三个控制器:#import "MainViewController.h"#import "LoginViewController.h"#import "RegistViewController.h"#import "Pa...
2015-10-17 22:30:00 119
转载 UI涂鸦板设计代码
第一步:创建UIView子类PaintView:1、声明属性和方法:#import <UIKit/UIKit.h>@interface PaintView : UIView@property(nonatomic,retain)NSMutableArray *allLines;@property(nonatomic,retain)UIColor *lineC...
2015-10-17 12:06:00 136
转载 UI简单计算器设计代码
#import "AppDelegate.h"#define kScreenWidth CGRectGetWidth([[UIScreen mainScreen] bounds])#define kScreenHeight CGRectGetHeight([[UIScreen mainScreen] bounds])#define kButtonWidth ((kScree...
2015-10-17 11:51:00 197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人