代码改变世界

阅读排行榜

为iOS优化你的Web App

2013-01-22 10:36 by Tracy E, 662 阅读, 收藏,
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /&g 阅读全文

在iphone中获取格式化的时间

2010-10-11 11:21 by Tracy E, 654 阅读, 收藏,
摘要: 参看:http://blog.chinaunix.net/u2/66419/showart_2347823.htmlNSDateFormatter *dateFormatter = [[NSDateFormatteralloc] init];[dateFormatter setDateFormat:@"YYYY年MM月dd日"];NSString *currentDate = [dateFormatter stringFromDate:[NSDatedate]];NSLog(@"current date = %@",currentDate); 阅读全文

封装的一个用来下载图片的类

2010-10-20 09:33 by Tracy E, 607 阅读, 收藏,
摘要: //// ImageDownloader// Created by Tracy E on 10-9-5.// Copyright 2010 tracy.cpp@gmail.com. All rights reserved.// @protocol ImageDownloaderDelegate;@interface ImageDownloader : NSObject{ NSString *imageURL; NSMutableData *activeDownload; NSURLConnection *imageConnection; id <ImageDownloaderD... 阅读全文

Text Kit入门

2013-11-06 22:58 by Tracy E, 590 阅读, 收藏,
摘要: 更详细的内容可以参考官方文档《Text Programming Guide for iOS》。“Text Kit指的是UIKit框架中用于提供高质量排版服务的一些类和协议,它让程序能够存储,排版和显示文本信息,并支持排版所需要的所有特性,包括字距调整、连写、换行和对齐等。”以前,如果我们想实现复杂的文本排版,例如在textView中显示不同样式的文本,或者图片和文字混排,你可能就需要借助于UIWebView或者深入研究一下Core Text。在iOS6中,UILabel、UITextField、UITextView增加了一个NSAttributedString属性,可以稍微解决一些排版问题,但 阅读全文

Opening Files Whose Type is Unknown

2010-08-15 20:45 by Tracy E, 570 阅读, 收藏,
摘要: Opening Files Whose Type is Unknown (UIDocumentInteractionController)How to use a document interaction controller:1.Create an instance of the UIDocumentInteractionController class for each file you wa... 阅读全文
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页