摘要:
@interface ViewController () <AddViewControllerDelegate> @property (nonatomic, retain) UITableView *tableView; @property (nonatomic, retain) NSMutable 阅读全文
摘要:
@interface ViewController () @property (nonatomic, retain) NSMutableArray *dataArrary; @property (nonatomic, retain) NSMutableArray *dogArray; @proper 阅读全文
摘要:
-(instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { //获取整体宽高 CGFloat totalWidth = frame.size.width; CGFloat t 阅读全文
摘要:
/** * 1、如何定义一个Block变量 2、怎样给定义的Block变量赋初值 3、如何重定义Block类型 4、如何使用Block实现具体的功能 5、Block与变量作用域的关系 */ int sum(int a, int b) { return a + b; } int count = 100 阅读全文
摘要:
#import "FirstViewController.h" #import "SecondViewController.h" @interface FirstViewController () @end @implementation FirstViewController - (void)de 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.title = @"朱珍洁"; self.view.backgroundColor = [UIColor purpleColor]; UIButton *button = [ 阅读全文
摘要:
- (void)dealloc { [_scrollView release]; [_pageControl release]; [super dealloc]; } - (void)scrollViewDidScroll:(UIScrollView *)scrollView { //获取滚动视图当 阅读全文
摘要:
//滚动过程中触发的方法 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { NSLog(@"正在滚动"); } //即将开始拖拽的方法,此时滚动视图即将加速 - (void)scrollViewWillBeginDragging:(UI 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UIImageView *imageView = [[UIImageView alloc] initWithFr 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 275, 500)]; imageView.image 阅读全文