上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 直接贴代码@interface TSSlideShowImageView : TTImageView{ NSString* _linkURL;}@property(nonatomic,copy)NSString* linkURL;@end#import "TSSlideShowImageView.h"@implementation TSSlideShowImageView@synthesize linkURL = _linkURL;-(void)dealloc{ [_linkURL release]; [super dealloc];}-(void)touchesBegan 阅读全文
posted @ 2012-06-21 14:40 alex hu 阅读(549) 评论(0) 推荐(0)
摘要: 在three20中结合RaisedCenterTabBar发现在ViewController中使用self.hidesBottomBarWhenPushed = YES;中间那个图片依然显示在中间那个位置没有隐藏。https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar 结合http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/ 给到的解决方案,把最后fix的代码贴出来,供大家参考// Create a custom UIButton an. 阅读全文
posted @ 2012-06-16 21:21 alex hu 阅读(1722) 评论(2) 推荐(0)
摘要: 今天花了好几个小时做这个推送,前几次一直是失败,没有做对,网上看过很多教程,有几个地方要值得注意。 这篇blog写得比较清楚:http://zxs19861202.iteye.com/blog/1532460 http://www.mobiledevor.com/post/100.html 1.deviceToken 是从ios 中得到 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)pToken { NSLog(@" 阅读全文
posted @ 2012-06-14 20:24 alex hu 阅读(20226) 评论(0) 推荐(1)
摘要: 打开终端逐条输入curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gztar -xzf wget-1.13.4.tar.gzcd wget-1.13.4./configure --with-ssl=opensslmakesudo make installwget --helpcd .. && rm -rf wget* 阅读全文
posted @ 2012-06-14 13:00 alex hu 阅读(1107) 评论(0) 推荐(0)
摘要: 今天做一个注册页面,异步运行,发现在requestDidFinishLoad;这个不管怎么都不运行,然而用[send sendSynchronously];可以运行,找了老半天的原因,后来发现在我TTURLMAP中注册的时候是个“toSharedViewController” 这个仅仅在离开这个页面时候才会调用,所来改成“toViewController” 解决问题 阅读全文
posted @ 2012-06-11 16:21 alex hu 阅读(281) 评论(0) 推荐(0)
摘要: three20比较方便,只要将autoresizesForKeyboard = YES就可以自动调整键盘位置,但是有一个bug,如果切换输入法将会导致view消失,后来查了一下,找到了如下解决方法,可以直接将TTTableViewController.m 中代码替换成如下:当然我建议还是继承一下TTTableViewController,然后在子类中处理。////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////. 阅读全文
posted @ 2012-06-08 14:22 alex hu 阅读(327) 评论(0) 推荐(0)
摘要: http://andersonferminiano.com/jqueryscrollpagination/ 阅读全文
posted @ 2012-05-26 11:02 alex hu 阅读(992) 评论(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 阅读(476) 评论(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 阅读(658) 评论(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 阅读(18518) 评论(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 阅读(331) 评论(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 阅读(1184) 评论(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 阅读(440) 评论(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 阅读(627) 评论(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 阅读(2645) 评论(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 阅读(2138) 评论(0) 推荐(0)
摘要: 今天遇到这个错误提示,查了一下解决方案:网上有人说是扩展Input类,我觉得问题根源不在这里,后面查到一个国外解决方案:<!-- 这样将会引起报错 --><input type="text" name="fieldname['foo']" value=""> <!-- 这样是正常的. --><input type="text" name="fieldname[foo]" value="">多了一对双引号sourc 阅读全文
posted @ 2012-03-05 16:08 alex hu 阅读(1156) 评论(9) 推荐(0)
摘要: .NET软件工程师1.熟悉B/S架构,精通Asp.net、C#,熟悉HTML、CSS、JavaScript、AJAX、Web Service等;2.熟悉sqlserver数据库,熟练掌握sql;3.熟悉asp.net,能够独自完成小型网站的开发、测试及部署;4.了解任意一款源代码管理工具,使用工具进行源代码管理;5.英文良好,能够看懂英文的技术文档;6.熟悉Windows Service开发的优先;7.计算机,计算机工程,应用数学,等理工科学士学位;8.有电子商务网站,搜索引擎,竞价广告等经验的优先。待遇 :基本工资5-10K+四金+奖金 (优秀人才将获得期权),具体工资视实际工作能力和工作经 阅读全文
posted @ 2012-02-13 21:17 alex hu 阅读(915) 评论(6) 推荐(0)
摘要: 最近接触到了CodeIgniter开源轻量级架构,集合了开发中常用的类和功能函数,关于CodeIgniter的缓存总结有以下几点: 1. 数据库缓存 数据库缓存主要是针对于SELECT查询// 打开缓存开关$this->db->cache_on();$query1 = $this->db->query("SELECT * FROM mytable");// 使下面这条查询不被缓存$this->db->cache_off();$query2 = $this->db->query("SELECT * FROM membe 阅读全文
posted @ 2012-02-12 23:57 alex hu 阅读(5682) 评论(0) 推荐(0)
摘要: 此话题讨论很多,解决方案也比较多。 一个网页要用的js文件很多,可以一次性全部载入,也可以需要的时候分别载入。现在讨论的是通过jquery动态载入。假设定义了一个global.js内容如下: var G={}; G.app={}; //应用首页定义一个home.js内容如下: G.app.home={ init:function(){},//初始化一此变量 slideShow:function(objId,dataJson,timeout){ $.getScript("/js/lyhucSlider.js",function(response,status){ $(' 阅读全文
posted @ 2012-02-08 13:42 alex hu 阅读(512) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页