码迷,mamicode.com
首页 >  
搜索关键字:viewcontroller    ( 2658个结果
用UITextView模拟UITextField的placeHolder
用UITextView模拟UITextField的placeHolder效果:源码://// ViewController.m// TextView//// Created by YouXianMing on 14/12/18.// Copyright (c) 2014年 YouXianMi...
分类:其他好文   时间:2014-12-18 23:34:56    阅读次数:203
当自定义leftBarButtonItem(s)左边缘滑动失效时
如何开启: 1.ViewController实现 UIGestureRecognizerDelegate 协议 class YourViewController: UIGestureRecognizerDelegate { func viewDidLoad() { navigationItem.setLeftBarButtonItems([...,...]) //...
分类:其他好文   时间:2014-12-18 22:17:05    阅读次数:280
[iOS基础控件 6.11.1] - 控制器 & 控制器view
A.控制器的创建 控制器常见的创建方式有以下几种通过storyboard创建 直接创建 1 ViewController *vc = [[ViewController alloc] init]; xib设置了class后,当xib的文件名跟controller类名一样的时候,用这个方法默认就会加载x...
分类:移动开发   时间:2014-12-18 22:07:49    阅读次数:300
带索引的UITableView
效果图:点击后的效果图:工程图:代码:viewController.h#import @interface ViewController : UIViewController{ UITableView *myTableView; NSMutableArray *dataArray; ...
分类:其他好文   时间:2014-12-18 10:14:11    阅读次数:153
ios调用dismissViewController的一个小陷阱
我们的APP从启动到进入主页面,是通过presentViewController构造了一个ViewController序列,类似于首页 -> 登陆页 -> 启动加载页 -> 主页面 其中,在启动加载页的viewDidAppear方法里做了很多逻辑处理: -(void) viewDidAppear:(BOOL)animated{ dispatch_async(dispatch_...
分类:移动开发   时间:2014-12-18 00:19:06    阅读次数:204
Core Location在iOS 8中的变化---Swift
一直以来,定位的实现都非常的简单和一致: Objective-C的实现: #import "ViewController.h" @import CoreLocation; //引入库文件 @interface ViewController () //遵守协议 @property (strong, nonatomic) CLLocationManager *locationManager;...
分类:移动开发   时间:2014-12-17 18:42:48    阅读次数:202
iOS socket 笔记
ios 客服端:下载AsyncSocket 开发框架,拖到项目中//建立#import "ViewController.h"#import #import #import #import #import "AsyncSocket.h"#define DEVW [[UIScreen mainScree...
分类:移动开发   时间:2014-12-17 14:29:56    阅读次数:253
View Controller Relationships
Parent-child relationshipsParent-child relationships are formed when using view controller containers. Examples of viewcontroller containers are UINav...
分类:其他好文   时间:2014-12-16 16:37:37    阅读次数:98
uiscrollerview循环滚动(参考第三方库:HMBannerView)
#import #import "HMBannerView.h" @interface ViewController : UIViewController // Banner@property (nonatomic, strong) HMBannerView *bannerView; @end #....
分类:其他好文   时间:2014-12-16 15:01:03    阅读次数:245
Swift中TableView的基本使用
Xcode6新建一个项目,采用swift创建代码 创建一个ViewController继承UITableViewController 涉及了模型,控制器 模型:ZLPlace.swift class ZLPlace: NSObject { var place = "" var visited = false } tableViewController 控制器 ...
分类:编程语言   时间:2014-12-16 08:46:49    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!