这里的背景跟上面的差不多
不过这里要用到AppDelegate的单例进行传值
首先到AppDelegate.h文件中
#import
@interface WJJRootViewController : UITabBarController
//声明一UIButton属性 来记录当前按下的按钮
@property (nonatomic,strong) UIButton * select...
分类:
其他好文 时间:
2015-07-29 23:13:20
阅读次数:
341
效果如图
代码如下(只有实现部分)
@interface AppDelegate ()
@end
@implementation AppDelegate
- (void)dealloc
{
[_window release];
[super dealloc];
}
- (BOOL)application:(UIApplication *)application...
分类:
其他好文 时间:
2015-07-29 21:23:10
阅读次数:
141
开发环境:Xcode 7 Beta 4
1.1: 部署初步架构
1.2 设置根控制器(AppDelegate.swift)
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Boo...
分类:
编程语言 时间:
2015-07-29 06:26:44
阅读次数:
2361
1、在AppDelegate中增加,这个方法可以禁止横屏
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return UIInterfaceOrientationMask...
分类:
移动开发 时间:
2015-07-28 18:39:28
阅读次数:
196
//
// AppDelegate.m
// UI-tableBar
//
// Created by jzq_mac on 15/7/28.
// Copyright (c) 2015年 jzq_mac. All rights reserved.
//
#import
"AppDelegate.h"
#import
"N...
分类:
移动开发 时间:
2015-07-28 13:10:15
阅读次数:
125
添加AVFoundation.framework库文件1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import ...
分类:
其他好文 时间:
2015-07-27 22:51:14
阅读次数:
127
//友盟 [UMSocialData setAppKey:kUmengAppkey]; [UMSocialConfig setSupportedInterfaceOrientations:UIInterfaceOrientationMaskPortrait]; //wechat [UMSoc...
分类:
移动开发 时间:
2015-07-27 10:42:30
阅读次数:
116
VS2013快捷键:注释,Ctrl+K+C;取消注释Ctrl+K+U。都是单行。要实现多行注释与取消注释,就选中多行。run方法调用了AppDelegate的applicationDidFinishLaunching方法要调整窗体的大小的话,在AppDelegate.cpp的auto directo...
分类:
其他好文 时间:
2015-07-26 22:19:02
阅读次数:
168
//
-?(BOOL)application:(UIApplication?*)application?
????????????????????didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions?{
//
????self.window?=?[[UIWindo...
分类:
移动开发 时间:
2015-07-26 17:36:00
阅读次数:
169
背景
有一个根视图控制器 然后跳转到第一个界面 第一个界面可以返回到根视图 也可以跳转到第二个视图 第二个视图可以直接返回到根视图
新建三个ViewController RootViewController FirstViewController SecondViewController
首先在AppDelegate.m中写入
#import "WJJAppDelegate.h"...
分类:
其他好文 时间:
2015-07-24 18:29:29
阅读次数:
244