摘要:
1、创建UIScrollView视图: UIScrollView *aScrollView = [[[UIScrollView alloc] initWithFrame:self.view.bounds] autorelease]; aScrollView.backgroundColor = [... 阅读全文
摘要:
/Users/xalo/Desktop/模拟图.png 阅读全文
摘要:
// 1、轻拍手势识别器的使用 UITapGestureRecognizer *tapGesture=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(handleTapGesture:)]; //设置需要... 阅读全文
摘要:
#import "MainViewController.h"@interface MainViewController ()@end@implementation MainViewController- (void)viewDidLoad { [super viewDidLoad]; // Do... 阅读全文
摘要:
第一步:创建视图控制器并创建LoginViewController、RegistViewController、PasswordViewController三个控制器:#import "MainViewController.h"#import "LoginViewController.h"#impor... 阅读全文
摘要:
第一步:创建UIView子类PaintView:1、声明属性和方法:#import @interface PaintView : UIView@property(nonatomic,retain)NSMutableArray *allLines;@property(nonatomic,retain)... 阅读全文
摘要:
#import "AppDelegate.h"#define kScreenWidth CGRectGetWidth([[UIScreen mainScreen] bounds])#define kScreenHeight CGRectGetHeight([[UIScreen mainScreen]... 阅读全文