在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Three20-final开源软件地址:https://gitee.com/shede333/three20-final开源软件介绍:Three202013_07_16我恢复了Three20最后一次有效的提交 by shede333 ======= Three20 is a collection of iPhone UI classes, like a photo viewer, and generalutilities, like an HTTP disk cache. Three20 is derived from theFacebook iPhone app, which is one of the most downloaded iPhone apps ever. CommunityIf you would like to ask any questions regarding Three20, please check out any of the following: DocumentationYou can access Three20 API documentation in several ways:
Adding Three20 to your projectThree20 is compiled as static libraries. It use Xcode's "dependent project" facilities.There are two methods of adding Three20 to your project. The first is with the TTModule Python Script. The Second option is to add it to your project manually. Here is how:
An Overview of Three20Photo ViewerTTPhotoViewController emulates Apple's Photos app with all of its flick n' pinch delight.You can supply your own "photo sources", which works similiarly to the data sources used byUITableView. Unlike Apple's Photos app, it isn't limited to photos stored locally. Yourphotos can be loaded from the network, and long lists of photos can be loaded incrementally. Message composerTTMessageController emulates the message composer in Apple's Mail app. You can customize itto send any kind of message you want. Include your own set of message fields, or use thestandard "To:" and "Subject:". Recipient names can be autocompleted from a data source thatyou provide. Web image viewsTTImageView makes it as easy to display an image as it is in HTML. Just supply the URLof the image, and TTImageView loads it and displays it efficiently. TTImageView also workswith the HTTP cache described below to avoid hitting the network when possible. Internet-aware table view controllersTTTableViewController and TTTableViewDataSource help you to build tables which loadtheir content from the Internet. Rather than just assuming you have all the data ready to go,like UITableView does by default, TTTableViewController lets you communicate when your data isloading, and when there is an error or nothing to display. It also helps you to add a "More"button to load the next page of data, and optionally supports reloading the data by shaking thedevice. Better text fieldsTTTextEditor is a UITextView which can grow in height automatically as you type. I usethis for entering messages in Facebook Chat, and it behaves similarly to the editor in Apple'sSMS app. TTPickerTextField is a type-ahead UITextField. As you type it searches a data source, andit adds bubbles into the flow of text when you choose a type-ahead option. I use this inTTMessageController for selecting the names of message recipients. HTTP disk cacheTTURLRequest is a replacement for NSURLRequest which supports a disk cache (NSURLRequestcan only cache in RAM). It has some other nice features too. HTTP posts are as easy assupplying a dictionary of parameters. The TTURL loading system can also be suspended andresumed at any time, which is a great performance helper. Network threads often fight withthe UI thread, so you can suspend the network any time your app is momentarily graphicallyintensive. URL-based NavigationTTNavigator is for those grizzled old web developers like myself who want toorganize their app by "pages" which can be displayed by visiting a URL. Your view controllers can simply register URL patterns that they handle, and when those URLsare visited the controllers will be created and displayed. You can also register genericactions that are called when a URL is visited. TTNavigator also persists and restores the full path of navigation controllers and modalview controllers, so your users can quit the app and come back exactly where they left off. Learn more at Three20.info |
请发表评论