摘要:
直接贴代码@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 阅读全文
摘要:
在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. 阅读全文
摘要:
今天花了好几个小时做这个推送,前几次一直是失败,没有做对,网上看过很多教程,有几个地方要值得注意。 这篇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(@" 阅读全文
摘要:
打开终端逐条输入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* 阅读全文
摘要:
今天做一个注册页面,异步运行,发现在requestDidFinishLoad;这个不管怎么都不运行,然而用[send sendSynchronously];可以运行,找了老半天的原因,后来发现在我TTURLMAP中注册的时候是个“toSharedViewController” 这个仅仅在离开这个页面时候才会调用,所来改成“toViewController” 解决问题 阅读全文
摘要:
three20比较方便,只要将autoresizesForKeyboard = YES就可以自动调整键盘位置,但是有一个bug,如果切换输入法将会导致view消失,后来查了一下,找到了如下解决方法,可以直接将TTTableViewController.m 中代码替换成如下:当然我建议还是继承一下TTTableViewController,然后在子类中处理。////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////. 阅读全文