QQ侧滑实现架构:需要建立以下几个ViewController:1.XQBaseViewController2.LeftViewController3.RightViewController4.ContentViewController(中间显示的主要内容)5.SliderViewControlle...
分类:
编程语言 时间:
2015-03-09 10:32:32
阅读次数:
208
根据 mvc 模式,显然视图(故事板),应该连接控制器层,也就是 viewcontroller,但是却发现:这是改正之后的,开始的时候,连接的是 UIViewController,应该连接视图控制器 ViewController 类类关系如下:@interface ViewController : ...
分类:
其他好文 时间:
2015-03-07 21:19:16
阅读次数:
841
iOS开发项目篇—04添加导航栏的按钮一、设置导航栏的按钮要求实现的效果: 说明:默认状态下和高亮状态下的图片是不一样的。 按钮的图片需要设置默认状态和高亮状态时的显示,系统了提供的下面方法 viewController.navigationItem.leftBarButtonIte...
分类:
移动开发 时间:
2015-03-06 18:50:50
阅读次数:
277
'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key HeadImageView.'出现这个的原因就是:故事板是...
分类:
其他好文 时间:
2015-03-05 20:55:52
阅读次数:
128
http://www.kyleduo.com/?p=278viewController -> pageViewController -> pageContentViewControllers 一个viewController添加一个pageViewController [viewControlle....
分类:
其他好文 时间:
2015-03-05 19:12:49
阅读次数:
132
首先我们来了解一下什么是viewController。viewController叫做视图控制器。对内是用于管理视图,对外则是与其他的viewcontroller进行通信。它继承于NSObject。它分为两种类型,一种叫contentViewController,内容视图控制器,主要用于体现内容,如...
分类:
其他好文 时间:
2015-03-05 16:11:48
阅读次数:
136
8 9 #import "ViewController.h"10 11 @interface ViewController ()12 13 @property (nonatomic, strong) UISwipeGestureRecognizer *leftSwipGestureRecogni.....
分类:
移动开发 时间:
2015-03-05 14:35:14
阅读次数:
155
创建出条形间隔效果的背景LineBackgroundView效果:使用://// ViewController.m// LineBackgroundView//// Created by XianMingYou on 15/3/4.// Copyright (c) 2015年 XianMin...
分类:
其他好文 时间:
2015-03-04 20:55:49
阅读次数:
135
// 我使用的AVAudioPlayer, 首先先导入库文件, 写上头文件,签上代理#import "ViewController.h"#import typedefNS_ENUM(NSInteger, playStatus){// 这个枚举用来控制暂停和播放的切换playStatusNo,play...
分类:
移动开发 时间:
2015-03-04 20:45:19
阅读次数:
199
//// ViewController.m// BLE1//// Created by Shawn on 15-1-29.// Copyright (c) 2015年 BIll-JC. All rights reserved.//#import "ViewController.h"#impo...
分类:
移动开发 时间:
2015-03-04 18:26:46
阅读次数:
1309