05 2012 档案

摘要:http://andersonferminiano.com/jqueryscrollpagination/ 阅读全文
posted @ 2012-05-26 11:02 alex hu 阅读(976) 评论(0) 推荐(0) 编辑
摘要:之前看过很多网站,特别是商城网站有这样的效果,一直以为是服务器端原理做的,刚刚看到这个贴子,收藏一下 原贴: http://zmingcx.com/jquery-lazy-to-achieve-picture.html 主要是通过jquery.lazyloa.js<script type="text/javascript">$(function() {$("img").lazyload({effect : "fadeIn"});});</script> 阅读全文
posted @ 2012-05-24 10:34 alex hu 阅读(469) 评论(1) 推荐(0) 编辑
摘要:1.首页要实现TTActionSheetControllerDelegate@interface TSPublishViewController : TTTableViewController<TTActionSheetControllerDelegate>{ CATETYPE _cateType;}@property(nonatomic,assign)CATETYPE cateType;@end2.在init中声明URLMAP规则- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleO 阅读全文
posted @ 2012-05-22 15:32 alex hu 阅读(644) 评论(0) 推荐(0) 编辑
摘要:1.uiscrollview 设置背景图片// Setup the Scroll ViewUIScrollView*tempScrollView=(UIScrollView*)self.view;tempScrollView.contentSize=CGSizeMake(320,720);// Set Stationary Background, so that while the user scroll the background is// fixed.UIImage*img =[UIImage imageNamed:@"bg-body.jpg"];[tempScrol 阅读全文
posted @ 2012-05-22 14:03 alex hu 阅读(18491) 评论(0) 推荐(1) 编辑
摘要:1. http://blog.twg.ca/2010/11/retina-display-icon-set/2. http://blog.twg.ca/2009/09/free-iphone-toolbar-icons/ 阅读全文
posted @ 2012-05-22 13:09 alex hu 阅读(266) 评论(0) 推荐(0) 编辑
摘要:three20 为什么self.navigationController.view 是nil原文:http://stackoverflow.com/questions/3715461/three20-navigation-by-openurlaction-self-navigationcontroller-is-nil-in-pushed当viewDidLoad执行后才不为nil,如果过早调就有问题 阅读全文
posted @ 2012-05-21 16:39 alex hu 阅读(1173) 评论(0) 推荐(0) 编辑
摘要:参考原文:http://code.coneybeare.net/three20-how-to-autoload-more-results-when-you下面的我的代码///////////////////////////////////////////////////////////////////////////////////////////////////- (void)tableViewDidLoadModel:(UITableView*)tableView { NSMutableArray* items = [[NSMutableArray alloc] init];... 阅读全文
posted @ 2012-05-20 12:02 alex hu 阅读(427) 评论(0) 推荐(0) 编辑
摘要:原文是这样的:http://three20.info/article/2010-10-06-URL-Based-Navigation#nativeparams[map from:@"tt://menu/(initWithMenu:)"toSharedViewController:[MenuController class]];[map from:[Contact class] name:@"view" toURL:@"tt://contact/view/(uid)"];两种方法:1.@interface Contact : NSObj 阅读全文
posted @ 2012-05-20 11:58 alex hu 阅读(614) 评论(0) 推荐(0) 编辑
摘要:用了CodeIgniter框架几个月,之前一直习惯用phpcms来做网站底层框架,后来发现在CodeIgniter 更加适合小站点应用开发,但是他自带的view功能,并不强大了,相反很吃力。 相比之下phpcms的view模板解析就强大多了,结合之前做的一个项目,特地将增强的代码copy出来。在CodeIgniter libraries中增加 template_cache.php<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * 模板解析缓存 */fi 阅读全文
posted @ 2012-05-18 11:09 alex hu 阅读(2621) 评论(4) 推荐(0) 编辑
摘要:效果类似于这样最近一直比较纠结如何做好一个app,前段时间开始学习three20, three20确定可以简化很多问题,上面类似的效果很多app上面都有用到过,如何做呢?我尝过多次,思路两种:1.上面一个ttscrollview+ ttpagecontrol,下面一个tttableview.但是你发会现上面一直是固定的,下面uitableview滚动上面的不动。2. tttbaleview中来处理,利用tableHeaderView中做,代码如下:#import "TSHomeViewController.h"#import "TSHomeDataSource.h 阅读全文
posted @ 2012-05-18 10:50 alex hu 阅读(2124) 评论(0) 推荐(0) 编辑