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