2015.3.20UI第5天导航控制器【UINavigationController】导航控制器步骤1,初始化2,push 进入新视图3,pop 返回返回到指定视图//通过导航控制器找到所有的界面NSArray *controllers =self.navigationController.view...
分类:
其他好文 时间:
2015-03-20 21:53:54
阅读次数:
121
OtherViewController *ovc=[[OtherViewController alloc]init]; ovc.navigationItem.title=[nameArr objectAtIndex:sender.tag-100]; [self.navigationControll...
分类:
其他好文 时间:
2015-03-20 21:47:35
阅读次数:
200
一、构造器重载概念函数重载概念也适用于构造器,条件如下:1、函数有相同的名字‘2、参数列表不同或返回值类型不同;构造器满足以下2个条件:classRectangle{
varwidth:Double
varheight:Double
init(width:Double,height:Double){
self.width=width
self.height=height
}
in..
分类:
其他好文 时间:
2015-03-20 18:51:01
阅读次数:
144
_dir=dirname(__FILE__).'/file/'; } public function cacheData($key,$value='',$path=''){ $filename=$this->_dir.$path.$key.self::EXT; ...
分类:
其他好文 时间:
2015-03-20 18:32:39
阅读次数:
115
$code, 'message'=>$message, 'data'=>$data ); if($type=="json"){ self::json($code,$message,$data);die; }else...
分类:
Web程序 时间:
2015-03-20 18:22:40
阅读次数:
145
测试步骤
1. 导入unittest模块
import unittest
2. 编写测试的类继承unittest.TestCase
class Tester(unittest.TestCase)
3. 编写测试的方法必须以test开头
def test_add(self)
def test_sub(self)
...
分类:
编程语言 时间:
2015-03-20 16:25:39
阅读次数:
186
1、html的缓存主要采取ASIHTTPRequest的缓存策略
(1)、设置缓存策略 //设置缓存
ASIDownloadCache *cache=[[ASIDownloadCache alloc] init];
self.myCache=cache;
//设置缓存路径
NSArray *paths =NSSearchPathForDirec...
分类:
Web程序 时间:
2015-03-20 16:24:28
阅读次数:
148
-(void)viewDidLoad{ //列数 int columns = 3; //每个图片之间的间距 = (控制器view的宽度 - 列数 * 图片的宽度)/ (列数 + 1) CGFloat margin = (self.view.frame.size.width - columns...
分类:
其他好文 时间:
2015-03-20 15:50:07
阅读次数:
147
第6列<?phpecho"index.php<br><br>";echo"_FILE_:"._FILE_."<br>";echo"request_uti:".$_SERVER["request_urt"]."<br>";echo"script_name:".$_SERVER["script_name"]."<br>";echo"php_self:".$_SERVER["php_self"]."<br>";echo"script_..
分类:
Web程序 时间:
2015-03-20 14:36:25
阅读次数:
168
// 1. 程序创建UI控件时常常会调用该方法执行初始化。因此,如果你需要对UI控件执行一些额外的初始化,即可通过重写该方法来实现。- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; i.....
分类:
其他好文 时间:
2015-03-20 14:25:19
阅读次数:
140