ReadMe.txt ( File view )

  • By michaeljohnson789 2013-11-25
  • View(s):13
  • Download(s):0
  • Point(s): 1

This sample is a catalog exhibiting many views and controls in the UIKit framework, along with their various properties and styles.
If you need code to create specific UI controls or views, refer to this sample and it should give you a good head start in building your user interface.
In most cases you can simply copy and paste the code snippets you need. 
When images or custom views are used, accessibility code has been added. Using the iPhone Accessibility API enhances the user experience of VoiceOver users.

Build Requirements
iOS 5.0 SDK or later

Runtime Requirements
iOS 3.2 or later

Using the Sample
Build and run the sample using iOS 5.0 SDK.
To run in the simulator, set the Active SDK to Simulator. To run on a device, set the Active SDK to the appropriate Device setting.

In most areas of this sample, as you see various UI elements, you will see a corresponding explanation as to where you can find the code. 
So for example the Buttons page - the gray button will have "ButtonsViewController.m - createGrayButton".
This means refer to the ButtonsViewController.m source file and search for the createGrayButton Objective-C method.

Buttons - This UIViewController or page contains various kinds of UIButton controls complete with background images.

Controls - This page contains other miscellaneous UIControl classes helpful in building your user interface including switch, slider page, and progress indicator.

TextFields - This page hosts different kinds of UITextField controls.  It also demonstrates how to handle the keyboard, particularly where text fields are placed.

SearchBar - This pages exhibits the UISearchBar control.

TextView - This page exhibits the use of UITextView.

Pickers - This page shows the varying picker style view including UIPickerView and UIDatePicker.  UIDatePicker variants include date, time, date & time, as well as a counter.  A custom picker is also included in this page.

Images - Shows how you can create a UIImageView containing a group of images used for animations or slide show.

Web - Shows how to properly use a UIWebView and target websites using NSURL class.

Segment - This page adds several types of UISegmentedControl views.

Toolbar - This page shows how to use UIToolbar and adds several kinds of UIBarButtonItems.

Alerts - This page shows how to use UIActionSheet and UIAlertView to display varying kinds of alerts that require user actions.  This includes simple alerts, OK/Cancel alerts, and alerts with custom titled buttons.

Transitions - This page shows how to implement view "flipping" and "curl" animations between two different views using a category of UIView called UIViewAnimation.

Localization - You will notice this sample in various places shows you how to localize your string content by using the NSLocalizedString() macro.  Each language has a "Localizeable.strings" file and this macro refers to this file when loading the strings.

Packaging List
main.m - Main source file for this sample.
AppDelegate.h/.m - The application's delegate to setup its window and content.
Contants.h - Contains various screen placement constants used across all the UIViewControllers.

MainViewController.h/.m - The front UIViewController containing a UITableView to navigate to all its pages.
ButtonsViewController.h/.m -UIViewController that hosts all the varying UIButtons.
ControlsViewController.h/.m - UIViewController that hosts all the varying UIControls.
TextFieldViewController.h/.m - UIViewController that contains UITextFields and how to use them.
SearchBarController.h/.m - UIViewController that contains a UISearchBar.
TextViewController.h/.m - UIViewController that shows how to use UITextView.
PickerViewController.h/.m - UIViewController that shows all the different kinds of picker controls.
ImagesViewController.h/.m - UIViewController that contains a UIImageView.
WebViewController.h/.m - UIViewController that shows how to use UIWebView.
AlertsViewController.h/.m - UIViewController that hosts all the varying kinds of alerts and action sheets.
SegmentViewController.h/.m - UIViewController that hosts all the varying UISegmentedControls.
ToolbarViewController.h/.m - UIViewController that hosts a UIToolbar and its UIBarButtonItems.
TransitionViewController.h/.m - UIViewController that shows how to flip between two different views.

Changes from Previous Versions
1.0 - First release
1.1 - Updated the user interface layout to show proper use or proper context in using the UIKit controls and views.
1.2 - Changes due to API updates in the Beta 3 SDK: reusable UITableView cells.
1.3 - Updated for Beta 4, changed to use Interface Builder xib files, removed un-needed QuartzCore framework, added Toolbar view for UIToolbar and UIBarButtonItems, added additional UIButtonTypes, added UISearchBar.
1.4 - Updated for Beta 5, renamed some classes.
1.5 - Beta 6 Release, updated to use xib file for MainViewController, fixed bad blur effect on UIView classes by properly rounding of coordinates, introduced "UIViewAnimationTransitionCurlUp/UIViewAnimationTransitionCurlDown" UIView transitions, adopted UITextField's "leftView" property.
1.6 - Minor UI modifications, changed bundle identifier.
1.7 - Improved custom UIPicker, Updated for and tested with iPhone OS 2.0. First public release.
2.0 - Upgraded for 3.0 SDK due to deprecated APIs, more use of UITableViewController.
2.5 - Minor bug fixes, all view controllers created from separate nibs, more use of properties, further code optimizations, added viewDidUnload methods.
2.6 - Used the iPhone Accessibility API to improve the accessibility of UICatalog and demonstrate how accessibility should be employed.
2.7 - Removed deprecation use of UIKeyboard info keys, upgraded project to build with the iOS 4 SDK.
2.8 - Deployment target set to iPhone OS 3.2.
2.9 - Upgraded to support 4.2 SDK, Picker page now supports landscape orientation.
2.10 - Upgraded to support 5.0 SDK, UIStepper control added, tinting/background image support added where possible, and secure text entry for UIAlertView.

Copyright (C) 2008-2011 Apple Inc. All rights reserved.
Expand> <Close

Want complete source code? Download it here

Point(s): 1

0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.96 kB
AlertsViewController.h2.70 kB2011-07-08 13:00
AlertsViewController.m12.14 kB2011-07-08 13:00
AppDelegate.h2.75 kB2011-07-08 13:00
AppDelegate.m3.90 kB2011-07-08 13:00
ButtonsViewController.h3.08 kB2011-07-08 13:00
ButtonsViewController.m16.41 kB2011-07-08 13:00
Constants.h2.72 kB2011-07-08 13:00
ControlsViewController.h3.12 kB2011-07-08 13:00
ControlsViewController.m16.35 kB2011-07-08 13:00
01.96 kB
AlertsViewController.xib5.85 kB2011-06-15 17:15
ButtonsViewController.xib5.99 kB2011-06-15 17:15
ControlsViewController.xib6.00 kB2011-06-15 17:15
ImagesViewController.xib10.66 kB2011-06-15 17:15
Localizable.strings1.58 kB2011-06-22 19:12
MainWindow.xib12.54 kB2011-06-15 17:15
PickerViewController.xib31.15 kB2011-06-15 17:15
SearchBarController.xib10.53 kB2011-06-22 19:12
SegmentViewController.xib5.70 kB2011-06-15 17:15
TextFieldController.xib6.78 kB2011-06-15 17:15
TextViewController.xib5.90 kB2011-06-15 17:15
ToolbarViewController.xib28.16 kB2011-06-22 19:12
TransitionViewController.xib10.26 kB2011-06-15 17:15
WebViewController.xib5.62 kB2011-06-15 17:15
01.96 kB
12-6AM.png1.98 kB2011-06-15 17:15
12-6PM.png2.43 kB2011-06-15 17:15
6-12AM.png2.32 kB2011-06-15 17:15
6-12PM.png2.17 kB2011-06-15 17:15
blueButton.png1.43 kB2011-06-15 17:15
bookmarkImage.png1.08 kB2011-06-27 15:44
bookmarkImageHighlighted.png1.04 kB2011-06-27 15:44
Default.png2.07 kB2011-06-15 17:15
divider.png902.00 B2011-06-22 19:12
Icon-72.png1.04 kB2011-06-15 17:15
Icon-Small-50.png992.00 B2011-06-15 17:15
Icon-Small.png918.00 B2011-06-15 17:15
Icon-Small@2x.png1,010.00 B2011-06-15 17:15
Icon.png1,007.00 B2011-06-15 17:15
Icon@2x.png1.22 kB2011-06-15 17:15
iTunesArtwork5.07 kB2011-06-15 17:15
orangeslide.png3.04 kB2011-06-15 17:15
scene1.jpg45.98 kB2011-06-15 17:15
scene2.jpg11.80 kB2011-06-15 17:15
scene3.jpg23.30 kB2011-06-15 17:15
scene4.jpg15.26 kB2011-06-15 17:15
scene5.jpg15.16 kB2011-06-15 17:15
searchBarBackground.png24.66 kB2011-06-22 19:12
segment_check.png510.00 B2011-06-15 17:15
segment_search.png3.69 kB2011-06-15 17:15
segment_tools.png3.79 kB2011-06-15 17:15
segmentedBackground.png24.23 kB2011-06-22 19:33
slider_ball.png868.00 B2011-06-15 17:15
toolbarBackground.png24.66 kB2011-06-22 19:12
UIButton_custom.png655.00 B2011-06-15 17:15
whiteButton.png1.40 kB2011-06-15 17:15
yellowslide.png3.04 kB2011-06-15 17:15
ImagesViewController.h2.69 kB2011-07-08 13:00
ImagesViewController.m5.01 kB2011-07-08 13:00
Info.plist1.13 kB2011-06-22 19:12
main.m2.63 kB2011-07-08 13:00
MainViewController.h2.60 kB2011-07-08 13:00
MainViewController.m11.70 kB2011-07-08 13:00
01.96 kB
CustomPickerDataSource.h2.64 kB2011-07-08 13:00
CustomPickerDataSource.m4.79 kB2011-07-08 13:00
CustomView.h2.67 kB2011-07-08 13:00
CustomView.m3.95 kB2011-07-08 13:00
PickerViewController.h3.44 kB2011-07-08 13:00
PickerViewController.m12.94 kB2011-07-08 13:00
Prefix.pch90.00 B2011-06-15 17:15
ReadMe.txt5.99 kB2011-06-22 19:35
SearchBarController.h2.72 kB2011-07-08 13:00
SearchBarController.m5.56 kB2011-07-08 13:00
SegmentViewController.h2.54 kB2011-07-08 13:00
SegmentViewController.m10.86 kB2011-07-08 13:00
TextFieldController.h2.89 kB2011-07-08 13:00
TextFieldController.m12.72 kB2011-07-08 13:00
TextViewController.h2.60 kB2011-07-08 13:00
TextViewController.m7.19 kB2011-07-08 13:00
ToolbarViewController.h3.37 kB2011-07-08 13:00
ToolbarViewController.m10.58 kB2011-07-08 13:00
TransitionViewController.h2.76 kB2011-07-08 13:00
TransitionViewController.m6.40 kB2011-07-08 13:00
01.96 kB
project.pbxproj44.96 kB2011-06-22 19:33
WebViewController.h2.62 kB2011-07-08 13:00
WebViewController.m6.64 kB2011-07-08 13:00
Sponsored links

ReadMe.txt (327.19 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point


Don't have an account? Register now
Need any help?
Mail to:


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D