摘要:
1、static: 所有的全局变量都是静态变量,而局部变量只有定义时加上类型修饰符static,才为局部静态变量。 静态变量并不是说其就不能改变值,不能改变值的量叫常量。 其拥有的值是可变的 ,而且它会保持最新的值。说其静态,是因为它不会随着函数的调用和 退出而发生变化。即上次调用函数的时候,如果我 阅读全文
摘要:
#pragma mark - 手势 总共有五种手势 分别为 Tap点击 Pan拖拽 LongPress长时间按压 Pinch捏合手势 rotation旋转 1. 定义成员变量 UIImageView *_imgView; 定义UIImageView, 响应手势方法时调用 CGPoint origin 阅读全文
摘要:
#pragma mark - UINavigationController UITabBarController 控制器的切换方式 --> Push / Model UINavigationController 第5点 和 UITabBarController 第4点 有使用说明 一、UINavig 阅读全文
摘要:
// 通过一个frame来初始化一个UI控件 - (id)initWithFrame:(CGRect)frame; // YES:能够跟用户进行交互 @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEn 阅读全文
摘要:
#pargma mark - Layer 1. 设置当前视图的背景颜色 self.view.backgroundColor = [UIColor lightGrayColor]; 2. 创建一个视图,并且设置frame UIView *myView = [[UIView alloc]initWith 阅读全文
摘要:
1. 从一个视图控制器跳转另一个视图控制器的方式是可以进行设置的 CATransition *animation = [[CATransition alloc]init]; animation.duration = 1; animation.type = @"pageCurl"; //立方体翻滚效果 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)]; scrollView.backgroundColor = 阅读全文
摘要:
1 //UIActivityIndicatorView //小菊花,加载 2 3 #import "ActivityIndicatorVC.h" 4 5 @interface ActivityIndicatorVC (){ 6 UIActivityIndicatorView *_activity ; 阅读全文
摘要:
UINavigationController为导航控制器,在iOS里经常用到。 1.UINavigationController的结构组成 UINavigationController有Navigation bar ,Navigation View ,Navigation toolbar等组成。 将 阅读全文
摘要:
MyCustomTabBar.h文件 #import <UIKit/UIKit.h> @interface MyCustomTabBar : UITabBarController @end MyCustomTabBar.m文件 #import "MyCustomTabBar.h" #define k 阅读全文