摘要:
阅读全文
摘要:
1 定义block #import <UIKit/UIKit.h> typedef void(^popViewBlock)(NSString *); @interface PopView : UIView @property(nonatomic,copy) popViewBlock popBlock 阅读全文
摘要:
1 UITableView的两种style 2 给tableView添加数据 1.数据源(DataSoure) 2.数据源方法(UITableViewDataSoure) 2 对tableView进行修改 1.代理(delegate) 2.代理方法(UITableViewDataSoure) 阅读全文
摘要:
UIView 实战习题一 按钮操作1 题目描述2 代码//// WHBLAPViewController.m// 03-按钮操作//// Created by whblap on 14-5-26.// Copyright (c) 2014年 whblap. All rights reserv... 阅读全文
摘要:
l 在iOS中想实现一些简单的动画效果(平移、缩放、旋转),特别简单l 你只需要告诉iOS系统:哪些代码造成的改变需要使用动画效果就可以了[UIView beginAnimations:nil context:nil];……需要执行动画效果的代码……[UIView commitAnimations]... 阅读全文
摘要:
1. 初始化l 最普通的初始化方法UIButton *btn = [[UIButton alloc] initWithFrame:rect];l 快速初始化UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];type参数... 阅读全文
摘要:
1. superviewl @property(nonatomic,readonly) UIView *superview;l 获得自己的父控件对象2. subviewsl @property(nonatomic,readonly,copy) NSArray *subviews;l 获得自己的所有子... 阅读全文