ProblemYou want to display an image instead of text as the title of the current view controlleron the navigation controller SolutionUse the titleView property of the view controller’s navigation item - (void)viewDidLoad { [super viewDidLoad]; /* Crea…
转自:http://stackoverflow.com/questions/17074365/status-bar-and-navigation-bar-appear-over-my-views-bounds-in-ios-7 Question: I recently downloaded Xcode DP to test my apps . The first thing I noticed and confirmed is that my view's bounds is not alway…
Presenting and Managing Views with UIViewController ProblemYou want to switch among different views in your application. SolutionUse the UIViewController class. ( Apple’s strategy for iOS development was to use the model-view-controller (MVC) divisio…
ProblemYou would like to directly manipulate the array of view controllers associated with aspecific navigation controller SolutionUse the viewControllers property of the UINavigationController class to access andmodify the array of view controllers…
ProblemYou would like to allow your users to move from one view controller to the other witha smooth and built-in animation. SolutionUse an instance of UINavigationController. What it's like If you’ve used an iPhone, iPod Touch, or iPad before, chanc…
You want to be able to allow your users to share content inside your apps with theirfriends, through an interface, such as Facebook and Twitter. Solution Create an instance of the UIActivityViewController class and share your contentthrough this clas…
You would like to present a few options to your users from which they can pick anoption, through a UI that is compact, simple, and easy to understand. effect: 1. declare control #import "ViewController.h" @interface ViewController () @property (…
Picking the Date and Time with UIDatePicker effect: 1. declaring a property of type UIDatePicker #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIDatePicker *myDatePicker; @end @implementation ViewControlle…
Resource Management in View Controllers 视图控制器的资源管理 View controllers are an essential part of managing your app’s resources. View controllers allow you to break your app up into multiple parts and instantiate only the parts that are needed. But more t…
View Controller Basics 视图控制器基础 Apps running on iOS–based devices have a limited amount of screen space for displaying content and therefore must be creative in how they present information to the user. Apps that have lots of information to display…
转自:http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2 Update 4/12/2013: Fully updated for iOS 6 (original post byMatthijs Hollemans, update by Ali Hafizji). This is the second part of a 2-part tutorial series…
Mirror of Apple’s iOS samples This repository mirrors Apple’s iOS samples. Name Topic Framework Description ABUIGroups Data Management(Contact Data) AddressBook ABUIGroups shows how to check and request access to a user’s address book database. It al…
gRPC is an universal remote procedure call framework developed by Google that has been gaining interests among many software developers that were developing microservices in recent years because its open source, language neutral, compact binary size,…
Introduction (已看) Prerequisites What Has Changed in the Sixth Edition? Our Teaching Philosophy How to Use This Book How This Book Is Ogranized Style Choices Typographical Conventions Necessary Hardware and Software 1. A Simple ios Application (已看) Cr…
iOS Programming UISplitViewController The iPad, on the other hand, has plenty of screen space to present both views using a built-in class called UISplitViewController. iPad 有足够的屏幕空间来展现两个view用built-in 类称为UISplitViewController. UISplitViewController…
iOS Programming Camera 1 1 Displaying Images and UIImageView 1.1 put an instance of UIImageView on the screen. Then drag an instance of UIImageView onto the view and position it below the label. A UIImageView displays an image according to its con…
iOS Programming UINavigationController the Settings application has multiple related screens of information: a list of settings (like Sounds), a detailed page for each setting, and a selection page for each detail. This type of interface is called a…