07 2012 档案

摘要:NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *date =[[[NSDate alloc]initWithTimeIntervalSince1970:[cobj.time doubleValue]]autorelease]; // NSLog(@"%@", date); NSString *strDate = [dateFormatter strin 阅读全文
posted @ 2012-07-29 21:32 高笑228 阅读(128) 评论(0) 推荐(0)
摘要:http://geeklu.com/2012/01/block/ 阅读全文
posted @ 2012-07-27 10:14 高笑228 阅读(98) 评论(0) 推荐(0)
摘要:http://geeklu.com/2012/05/custom-container-view-controller/ 阅读全文
posted @ 2012-07-25 16:21 高笑228 阅读(109) 评论(0) 推荐(0)
摘要:float version = [[[UIDevice currentDevice] systemVersion] floatValue]; 阅读全文
posted @ 2012-07-24 11:34 高笑228 阅读(134) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/newbie/basic/2012/0718/4462.html 阅读全文
posted @ 2012-07-20 12:51 高笑228 阅读(118) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/macdev/objc/2010/0601/1591.html 阅读全文
posted @ 2012-07-20 01:01 高笑228 阅读(121) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/macdev/objc/2011/0625/2979.html 阅读全文
posted @ 2012-07-20 00:51 高笑228 阅读(118) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/newbie/basic/2012/0718/4462.html 阅读全文
posted @ 2012-07-18 15:16 高笑228 阅读(98) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/newbie/basic/2012/0425/4192.html 阅读全文
posted @ 2012-07-18 01:04 高笑228 阅读(141) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/newbie/basic/2012/0514/4247.html 阅读全文
posted @ 2012-07-18 01:03 高笑228 阅读(123) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/bbs/read.php?tid=108119 阅读全文
posted @ 2012-07-18 00:22 高笑228 阅读(123) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/newbie/basic/2012/0703/4414.html 阅读全文
posted @ 2012-07-18 00:12 高笑228 阅读(129) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/bbs/read.php?tid=86050 阅读全文
posted @ 2012-07-18 00:11 高笑228 阅读(284) 评论(0) 推荐(0)
摘要:objective-c 遍历文件夹及判断文件类型//// main.m// FileSearchTest//// Created by Zhang Leonardo on 11-10-31.// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.// To discuss via :www.renren.com/leonardozhang //#import <Foundation/Foundation.h>int main (int argc, const char * argv[]){ @autorelease 阅读全文
posted @ 2012-07-17 14:41 高笑228 阅读(2254) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/bbs/read.php?tid=20423&fpage=2 阅读全文
posted @ 2012-07-17 01:08 高笑228 阅读(139) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/bbs/read.php?tid=69165&fpage=In-App Purchase例子http://code4app.com/ios/In-App-Purchase/4fc85be56803fa4a49000000 阅读全文
posted @ 2012-07-17 01:05 高笑228 阅读(199) 评论(0) 推荐(0)
摘要:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { ... 阅读全文
posted @ 2012-07-12 10:18 高笑228 阅读(2111) 评论(0) 推荐(0)
摘要:iPhone上实现Default.png动画iPhone上实现Default.png动画 原理: 添加一张和Default.png一样的图片,对这个图片进行动画,从而实现Default动画的渐变消失的效果。 操作: 在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpti*****:(NSDictionary *)launchOpti*****中添加如下代码: // Make this interesting. UIImageView *s... 阅读全文
posted @ 2012-07-09 11:03 高笑228 阅读(271) 评论(0) 推荐(0)
摘要:在程序中如何把两张图片合成为一张图片- (UIImage *)addImage:(UIImage *)image1 toImage:(UIImage *)image2 {UIGraphicsBeginImageContext(image1.size);// Draw image1[image1 drawInRect:CGRectMake(0, 0, image1.size.width, image1.size.height)];// Draw image2[image2 drawInRect:CGRectMake(0, 0, image2.size.width, image2.size.hei 阅读全文
posted @ 2012-07-09 11:00 高笑228 阅读(405) 评论(0) 推荐(0)
摘要:iphone网络post连接的两种处理方式(同步和异步) 第一种: 直接返回方式。-(void)UpadaPost:(NSString *)strcontext URL:(NSString *)urlstr{NSLog(urlstr);NSLog(strcontext);assert(strcontext != NULL);assert(urlstr != NULL);NSData *postData = [strcontext dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; NSString *post.. 阅读全文
posted @ 2012-07-09 10:54 高笑228 阅读(436) 评论(0) 推荐(0)
摘要:-(BOOL) isEmailAddress:(NSString*)email { NSString *emailRegex = @"^\\w+((\\-\\w+)|(\\.\\w+))*@[A-Za-z0-9]+((\\.|\\-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex]; return [emailTest evaluateWithObject:emai 阅读全文
posted @ 2012-07-08 17:38 高笑228 阅读(474) 评论(0) 推荐(0)
摘要:// AppDelegate *AppD = (AppDelegate*)[[UIApplication sharedApplication]delegate] ;// AppD.tabBarController.selectedViewController = [AppD.tabBarController.viewControllers objectAtIndex:2]; 阅读全文
posted @ 2012-07-07 15:46 高笑228 阅读(234) 评论(0) 推荐(0)
摘要:http://cocoa.venj.me/blog/simulate-low-speed-network-connection-for-ios-apps/ 阅读全文
posted @ 2012-07-04 18:26 高笑228 阅读(246) 评论(0) 推荐(0)
摘要:http://cocoa.venj.me/blog/custom-fonts-in-ios-apps/好久没有更新这里了,今天开始慢慢恢复更新。好了,废话不多说,开始讲正题。今天的话题其实也很简单,那就是在iOS中使用自定义字体。虽然iOS自带的字体通常已经足够我们使用了,但是,对于某些特殊程序来说,比如,电子书程序,可能需要用到一些特殊的字体,或者需要用更好看的字 体来达到我们想要的显示效果。不过,iOS是不支持系统级安装新字体的。不过在iOS 3.x中,我们已经可以用一个很简单的方法来使用自定义字体了。我们来创建一个简单的iOS项目来做演示。在界面上拖入一个UITextView,在代码中创 阅读全文
posted @ 2012-07-04 18:24 高笑228 阅读(2481) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/wanglang3081/article/details/7468480 阅读全文
posted @ 2012-07-03 17:45 高笑228 阅读(245) 评论(0) 推荐(0)