- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] ini...
分类:
移动开发 时间:
2015-08-27 22:58:21
阅读次数:
251
#import "RootViewController.h"#import "SecondViewController.h"#define kScreenWidth [UIScreen mainScreen].bounds.size.width#define kScreenHeight [UIScr...
分类:
移动开发 时间:
2015-08-27 22:54:43
阅读次数:
222
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:
移动开发 时间:
2015-08-27 22:55:01
阅读次数:
228
1、viewpager在广告头里经常运用到,它是android3后出现的控件,在因此在添加的时候android.support.v4.view.ViewPager.class里,因此在xml定义的时候需要加全名称,同时注意不要后缀名class。下面从demo里学习viewpager的运用。 ...
分类:
移动开发 时间:
2015-08-27 22:55:26
阅读次数:
610
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:
移动开发 时间:
2015-08-27 22:54:55
阅读次数:
205
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:
移动开发 时间:
2015-08-27 22:52:29
阅读次数:
292
初涉android,在自定义标题栏的时候就遇到了一些问题,由于很多都不懂,花了挺多时间才解决。好了废话不多说,直接上问题:styles.xml 然后再AndroidManifest.xml的对应Activity中引用该主题即可。效果图如下:
分类:
移动开发 时间:
2015-08-27 22:51:01
阅读次数:
153
@implementation AppDelegate//当应用程序加载时触发,创建window窗口对象,让对象的window成为程序的主窗口,并且可视.- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOp...
分类:
移动开发 时间:
2015-08-27 22:52:23
阅读次数:
286
RootViewController#import "RootViewController.h"#import "TouchView.h"#import "PanView.h"#import "PinchView.h"@interface RootViewController ()@end@impl...
分类:
移动开发 时间:
2015-08-27 22:51:54
阅读次数:
579
代码规范很重要,一个良好的代码习惯要从一开始就养成公共类和文件的设计(网络请求类、数据库类、Model类、View类,Controller、Handle类、公共头文件)一、文件 1、项目文件必须使用一个有意义的名字。 例如:TestDownImages 2、任何文件的命名不要以中文命名。...
分类:
移动开发 时间:
2015-08-27 22:49:13
阅读次数:
246
大连东软信息学院镜像服务器地址:-http://mirrors.neusoft.edu.cn端口:80北京化工大学镜像服务器地址:- IPv4:http://ubuntu.buct.edu.cn/端口:80- IPv4:http://ubuntu.buct.cn/端口:80- IPv6:http:/...
分类:
移动开发 时间:
2015-08-27 22:48:25
阅读次数:
214
响应者链就是当子视图不响应,父视图有响应事件,父视图响应#import "RootViewController.h"#import "ResponderView.h"@interface RootViewController ()@end@implementation RootViewControl...
分类:
移动开发 时间:
2015-08-27 22:45:16
阅读次数:
181
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:
移动开发 时间:
2015-08-27 22:45:56
阅读次数:
147
//// ViewController.m// 点餐系统//// Created by YaguangZhu on 15/8/27.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewController...
分类:
移动开发 时间:
2015-08-27 22:46:00
阅读次数:
210
Android 5.1 源码,编译相关的文件一般在build目录下build/target/product 放了很多mk文件;一般不同的产品会有不同的目录假设我不想编译OpenWnn,在build目录下grep一下“OpenWnn”target/product/full_base.mktarget/...
分类:
移动开发 时间:
2015-08-27 22:44:11
阅读次数:
323
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:
移动开发 时间:
2015-08-27 22:44:36
阅读次数:
216
>通过storyboard创建>直接创建YTViewController *yt = [[YTViewController alloc]init];>指定xib文件来创建YTViewController *yt = [[YTViewController alloc]initWithNibName:@...
分类:
移动开发 时间:
2015-08-27 22:36:50
阅读次数:
148