是不是很想有一种方法,使写一次代码,就可以使所有的页面屏幕都在不旋转(即在屏幕转的时候,字幕并不会改变)首先上下结构图:上代码:#import "AppDelegate.h"#import "RootViewController.h"@implementation AppDelegate- (BOO...
分类:
其他好文 时间:
2014-06-27 14:11:38
阅读次数:
169
UILabel混色显示效果:源码://// RootViewController.m// ColorLabels//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"#import "...
分类:
其他好文 时间:
2014-06-26 16:57:59
阅读次数:
217
关于UIScrollView有些你很难知晓的崩溃情形为了实现以下的功能(按钮之间的切换效果):简短的代码如下://// RootViewController.m// BUG//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "...
分类:
其他好文 时间:
2014-06-25 17:34:07
阅读次数:
180
简单思路:实例一个UIScrollView,在scrollView上添加两个UIView, 为scrollView添加观察者,观察scrollView的contentOffset属性.当偏移量改变时,改变UIView视图的坐标.示例代码:@interface RootViewController (...
分类:
其他好文 时间:
2014-06-24 13:35:15
阅读次数:
297
一、RootViewController:
#import "RootViewController.h"
#import "SecondViewController.h"
@interface RootViewController ()
{
UILabel *_myLabel;
}
@end
@implementation RootViewController
- (id)in...
分类:
其他好文 时间:
2014-06-19 10:24:12
阅读次数:
283
当进入页面时,定时器是打开的。当离开页面时,定时器会关掉。直接上代码。.h部分#import @interface RootViewController : UIViewController{ //定义定时器 NSTimer *timer;}@end.m部分-(void)viewWill...
分类:
其他好文 时间:
2014-06-18 09:01:10
阅读次数:
170
能产生粒子效果的CAEmitterLayer下雪效果://// RootViewController.m// Cell//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"@inter...
分类:
其他好文 时间:
2014-06-15 06:21:42
阅读次数:
309
计算Pan手势到指定点的角度效果图:源码:////
RootViewController.m// Circle//// Copyright (c) 2014年 Y.X. All rights
reserved.//#import "RootViewController.h"#import "R...
分类:
其他好文 时间:
2014-06-12 13:39:03
阅读次数:
390
UITabBarController的使用步骤1.初始化UITabBarController2.设置UIWindow的rootViewController为UITabBarController3.根据具体情况,通过addChildViewController方法添加对应个数的子控制器
UITa...
分类:
移动开发 时间:
2014-06-08 22:18:47
阅读次数:
341