AppDelegate.h#import @interface AppDelegate : UIResponder
@property (retain, nonatomic) UIWindow *window;
@endAppDelegate.m#import "AppDelegate.h"
#import "RootVi...
分类:
其他好文 时间:
2015-08-06 22:27:17
阅读次数:
227
有两种方法:
1、通过AppDelegate来判断;
2、在基类中创建NSNotification
- (void)viewDidLoad
{
[super viewDidLoad];
// 注册通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(hello)...
分类:
移动开发 时间:
2015-08-05 18:34:25
阅读次数:
132
新建一个继承于UIViewController 的类
在AppDelegate.m 中写如下代码. //1.创建一个rootViewController对象
RootViewController *rootVC = [[RootViewController alloc]init];
//2.给window设置根视图控制器
self.window.rootViewContro...
分类:
其他好文 时间:
2015-08-04 23:06:48
阅读次数:
142
//
// AppDelegate.m
// UI04_Delegate
//
// Created by dllo on 15/8/3.
// Copyright (c) 2015年 zhozhicheng. All rights reserved.
//#import "AppDelegate.h"
#import "MainViewController.h"
@interface Ap...
分类:
移动开发 时间:
2015-08-04 21:06:34
阅读次数:
133
要给工程中添加音频,首先要导入音频的框架 AVFoundation.framework
然后新建一个类继承于UIViewController,
我这里就叫FirstVC.
首先在 AppDelegate.m中初始化根视图
1 //
2 // AppDelegate.m
3 // YinPinShiPin
4 //
5 // Created by V...
分类:
其他好文 时间:
2015-08-04 17:14:52
阅读次数:
218
原理: Cocos2D中有个导演控制整个游戏流程,导演将场景添加到屏幕上,场景中有各种各样的演员。 先通过显示一张图片来看看Cocos2D游戏的流程: AppDelegate.cpp [cpp]?view plaincopy <EMBED id=ZeroClipboardM...
分类:
其他好文 时间:
2015-08-04 09:33:41
阅读次数:
138
1.实现的是微信的摇一摇
2.实现的是View随着触摸能够在视图中进行移动,还有是通过触碰实现颜色变换,一碰颜色就会得到改变//
// AppDelegate.m
// UI04_Touch
//
// Created by dllo on 15/8/3.
// Copyright (c) 2015年 zhozhicheng. All rights reserved.
//#import...
分类:
移动开发 时间:
2015-08-03 21:02:56
阅读次数:
169
完成登陆系统(登陆、注册、找回密码),使用容器视图控制器实现。
定义容器视图控制器ContainerViewController,指定为window的根视图控制器。
定义LoginViewController、RegistViewController、PasswordViewController,三个视图控制器的根视图添加到容器视图控制器的根视图。
//
// AppDelegate.m
//...
分类:
移动开发 时间:
2015-08-03 08:58:44
阅读次数:
238
#import @interface AppDelegate : UIResponder {@public NSInteger timeValue;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"....
分类:
其他好文 时间:
2015-08-02 15:02:07
阅读次数:
137
//
// AppDelegate.m
// UI03_UIViewController视图控制器
//
// Created by dllo on 15/7/31.
// Copyright (c) 2015年 zhozhicheng. All rights reserved.
//
#import "AppDelegate.h"
...
分类:
移动开发 时间:
2015-08-01 10:09:52
阅读次数:
146