摘要: 1. iOS版本确认12345678- (void)viewDidLoad { [super viewDidLoad]; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0) { bannerView = [[ADBannerView alloc] init]; bannerView.delegate = self; [self.view addSubview:bannerView]; }2. 新类是否存在123456Class clazz = NSClas... 阅读全文
posted @ 2012-03-30 01:55 chivas 阅读(13338) 评论(0) 推荐(0) 编辑
摘要: [sourceLabel sizeToFit]; 阅读全文
posted @ 2012-03-30 01:06 chivas 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Andy--清风 原创,转载请注明:http://www.cnblogs.com/huangdongcheng/archive/2011/11/05/2236916.html1、窗口:UIWindowiPhone的规则是一个窗口,多个视图,窗口是你在app显示出来你看到的最底层,他是固定不变的,基本上可以不怎么理会,但要知道每层是怎样的架构。2、视图:UIViewUIView是用户构建界面的基础,所有的控件都是在这个页面上画出来的,你可以把它当成是一个画布,你可以通过UIView增加控件,并利用控件和用户进行交互和传递数据。 窗口和视图是最基本的类,创建任何类型的用户界面都要用到。窗口表示屏幕 阅读全文
posted @ 2012-03-29 12:53 chivas 阅读(253) 评论(0) 推荐(0) 编辑
摘要: CGFloat duration = [UIApplication sharedApplication].statusBarOrientationAnimationDuration; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:duration]; [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; self.navigationController.v. 阅读全文
posted @ 2012-03-28 16:21 chivas 阅读(1309) 评论(0) 推荐(0) 编辑
摘要: else if($action=='addenum_save') { if(empty($ename) || empty($egroup)) { Showmsg("类别名称或组名称不能为空!","-1"); exit(); } if($issign==1 || $topvalue==0) { $enames = explode(',', $ename); foreach($enames as $ename) { $arr = $dsql->GetOne("Select * From `dede_sys_en 阅读全文
posted @ 2012-03-02 16:58 chivas 阅读(894) 评论(0) 推荐(0) 编辑
摘要: foreach($row as $s) { $list['orderid']=$s['orderid']; $list['productid']=$s['productid']; $list['buyerid']=$s['buyerid']; $list['status']=$s['status']; if($list['status']==1){ $list['status'] = '成功'; }else{$list[ 阅读全文
posted @ 2012-02-29 23:53 chivas 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 如果2张表的字段一致,并且希望插入全部数据,可以用这种方法:Code:INSERT INTO 目标表 SELECT * FROM 来源表;比如要将 articles 表插入到 newArticles 表中,则是:Code:INSERT INTO newArticles SELECT * FROM articles;如果只希望导入指定字段,可以用这种方法:Code:INSERT INTO 目标表 (字段1, 字段2, ...) SELECT 字段1, 字段2, ... FROM 来源表;注意字段的顺序必须一致。例:insert into edu_courseware(`name`,`vid`) 阅读全文
posted @ 2012-02-29 23:20 chivas 阅读(8043) 评论(0) 推荐(0) 编辑
摘要: //例子 var products = [ {productid:'FI-SW-01',name:'Koi'}, {productid:'K9-DL-01',name:'Dalmation'}, {productid:'RP-SN-01',name:'Rattlesnake'}, {productid:'RP-LI-02',name:'Iguana'}, {productid:'FL-DSH-01',name:'Manx'}, {pro 阅读全文
posted @ 2012-02-28 19:39 chivas 阅读(880) 评论(0) 推荐(0) 编辑
摘要: {dede:php} for ($i = 1; $i < 12; $i++) { $isecheck = ($i == 1) ? 'checked="1" ' : ''; echo '<li><input type="radio" name="face" value="'.$i.'" '.$isecheck.'/><img src="'.$cfg_templets_skin.'/im 阅读全文
posted @ 2012-02-28 11:09 chivas 阅读(159) 评论(0) 推荐(0) 编辑