[objc] view plaincopyprint?#import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)UITableView*tableView;@property(nonatomic,str...
分类:
移动开发 时间:
2015-01-07 12:21:27
阅读次数:
238
Swift数组的使用,参考:《TheSwiftProgramming Language》中文版// Copyright (c) 2015年 Zsmile. All rights reserved.//import UIKitclass ViewController: UIViewControlle....
分类:
编程语言 时间:
2015-01-07 09:16:53
阅读次数:
166
-(void)applicationDidFinishLaunching:(UIApplication*)application{[window addSubview:viewController.view];[window makeKeyAndVisible]; NSLog(@"Registeri...
分类:
移动开发 时间:
2015-01-06 17:25:49
阅读次数:
139
// AppDelegate.m#import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplic...
分类:
移动开发 时间:
2015-01-05 20:26:54
阅读次数:
198
xcode6 的segue 变化了,如图关于前3个选项,始终没有太明白,我试验结果如下,简单地把几个viewController连接起来时,无论用show,还是showdetail,还是Present modally,结果都是从下到上弹出模态的controller;而当使用了navigation c...
分类:
其他好文 时间:
2015-01-05 10:48:09
阅读次数:
112
/*使用与Object-C基本类似,只做简单地使用,创建表及其设置数据源和代理*/import UIKitclass ViewController: UIViewController,UITableViewDelegate,UITableViewDataSource { var _tableVie....
分类:
其他好文 时间:
2015-01-04 15:01:02
阅读次数:
104
#import "ViewController.h"@interface ViewController ()@property (nonatomic, strong) UIButton *btn;@end@implementation ViewController@synthesize btn;- ...
分类:
移动开发 时间:
2015-01-02 22:21:27
阅读次数:
293
根据类名来实例化对象,比如,要根据一个类名的字符串创建ViewController实例。let controllerName="SpainAppProto."+xibName // xibName 形如 XXViewControllervar classType: AnyObject.Type=N....
分类:
编程语言 时间:
2015-01-02 17:28:44
阅读次数:
244
原创Blog,转载请注明出处
http://blog.csdn.net/hello_hwc?viewmode=contents
所谓的生命周期,也就是几个函数的调用顺序,这里以用Storyboard来创建一个ViewController为例
然后我们测试如下代码
//
// ViewController.m
//
// Created by huangwenchen on 14/1...
分类:
移动开发 时间:
2014-12-29 21:35:23
阅读次数:
168
下面是我们要实现的效果。本效果是在上一篇自定义表视图的基础上进行更改的。 1.将Search bar and search display拖动到ViewController中。不要添加Search Bar.2.修改ViewController的头文件Cpp代码 #import@interfaceI....
分类:
移动开发 时间:
2014-12-29 08:51:59
阅读次数:
189