Open source China iOS client Learning (i) prefix.pch files

Source: Internet
Author: User
Tags uikit

When we create a new project, in the supporting files file will see a-prefix.pch end file, PCH full name is "precompiled Header", that is, precompiled header file, the file stored in the project some not Code that is often modified, such as a commonly used frame header file, is designed to increase compiler speed. We know that when we modify a file code in a project, the compiler does not recompile all of the files, but instead compiles all the files, and if one of the files in the PCH is modified, then the other files included in the PCH entire file are recompiled, which consumes a lot of time. So it is best to add files that are rarely changed or unchanged in header files or precompiled code fragments;

When you create a new project, the PCH suffix file code is

#import <Availability.h>  
       
#ifndef __iphone_4_0  
#warning "This project uses features only available in IOS SD K 4.0 and later. "  
#endif  
       
#ifdef __objc__  
    #import <UIKit/UIKit.h>  
    #import <Foundation/Foundation.h>  
# endif

You may find this precompiled code very rare, but you can look at the UIKit.h definition file

UIKit.h//Uikit////Copyright (c) 2005-2011, Apple Inc.  
All rights reserved. #import &lt;UIKit/UIKitDefines.h&gt; #import &lt;UIKit/UIAccelerometer.h&gt; #import &lt;uikit/uiaccessib ility.h&gt; #import &lt;UIKit/UIActivityIndicatorView.h&gt; #import &lt;UIKit/UIAlert.h&gt; #import &lt;uikit/uiapp lication.h&gt; #import &lt;UIKit/UIBarButtonItem.h&gt; #import &lt;UIKit/UIBarItem.h&gt; #import &lt;uikit/uibezierp ath.h&gt; #import &lt;UIKit/UIButton.h&gt; #import &lt;UIKit/UIColor.h&gt; #import &lt;UIKit/UIControl.h&gt; #impo RT &lt;UIKit/UIDataDetectors.h&gt; #import &lt;UIKit/UIDatePicker.h&gt; #import &lt;UIKit/UIDevice.h&gt; #import ; uikit/uidocument.h&gt; #import &lt;UIKit/UIDocumentInteractionController.h&gt; #import &lt;UIKit/UIEvent.h&gt; #imp ORT &lt;UIKit/UIFont.h&gt; #import &lt;UIKit/UIGeometry.h&gt; #import &lt;UIKit/UIGestureRecognizer.h&gt; #import &L T Uikit/uigraphics.h&gt; #import &lt;uikit/uiimage.h&gt; #import &lt;UIKit/UIImagePickerController.h&gt; #import &lt;UIKit/UIImageView.h&gt; #import &lt;uikit/u iinterface.h&gt; #import &lt;UIKit/UILabel.h&gt; #import &lt;UIKit/UILocalNotification.h&gt; #import &lt;uikit/uiloc alizedindexedcollation.h&gt; #import &lt;UIKit/UILongPressGestureRecognizer.h&gt; #import &lt;uikit/ uimanageddocument.h&gt; #import &lt;UIKit/UIMenuController.h&gt; #import &lt;UIKit/UINavigationBar.h&gt; #import ; uikit/uinavigationcontroller.h&gt; #import &lt;UIKit/UINib.h&gt; #import &lt;UIKit/UINibDeclarations.h&gt; #import & Lt  uikit/uinibloading.h&gt; #import &lt;UIKit/UIPageControl.h&gt; #import &lt;UIKit/UIPageViewController.h&gt; #import &lt;UIKit/UIPanGestureRecognizer.h&gt; #import &lt;UIKit/UIPasteboard.h&gt; #import &lt;UIKit/UIPickerView.h&gt; #i Mport &lt;UIKit/UIPinchGestureRecognizer.h&gt; #import &lt;UIKit/UIPopoverController.h&gt; #import &lt;uikit/ Uipopoverbackgroundview.h&gt; #import &lt;uikit/uiprinterror.h&gt; #import &lt;UIKit/UIPrintFormatter.h&gt; #import &lt;UIKit/UIPrintInfo.h&gt; #import &lt;uikit/ uiprintinteractioncontroller.h&gt; #import &lt;UIKit/UIPrintPageRenderer.h&gt; #import &lt;uikit/uiprintpaper.h &gt; #import &lt;UIKit/UIProgressView.h&gt; #import &lt;UIKit/UIReferenceLibraryViewController.h&gt; #import &lt;uik it/uiresponder.h&gt; #import &lt;UIKit/UIRotationGestureRecognizer.h&gt; #import &lt;UIKit/UIScreen.h&gt; #import &L T uikit/uiscreenmode.h&gt; #import &lt;UIKit/UIScrollView.h&gt; #import &lt;UIKit/UISearchBar.h&gt; #import &lt;uikit/  uisearchdisplaycontroller.h&gt; #import &lt;UIKit/UISegmentedControl.h&gt; #import &lt;UIKit/UISlider.h&gt; #import &lt;UIKit/UISplitViewController.h&gt; #import &lt;UIKit/UIStepper.h&gt; #import &lt;UIKit/UIStoryboard.h&gt; #impor T &lt;UIKit/UIStoryboardPopoverSegue.h&gt; #import &lt;UIKit/UIStoryboardSegue.h&gt; #import &lt;uikit/ Uistringdrawing.h&gt; #import &lt;uikit/uiswipegesturerecognizer.h&gt; #import &lt;UIKit/UISwitch.h&gt; #import &lt;UIKit/UITabBar.h&gt; #import &lt;uikit/uita bbarcontroller.h&gt; #import &lt;UIKit/UITabBarItem.h&gt; #import &lt;UIKit/UITableView.h&gt; #import &lt;uikit/uita bleviewcell.h&gt; #import &lt;UIKit/UITableViewController.h&gt; #import &lt;UIKit/UITapGestureRecognizer.h&gt; #imp ORT &lt;UIKit/UITextField.h&gt; #import &lt;UIKit/UITextInput.h&gt; #import &lt;UIKit/UITextInputTraits.h&gt; #impor T &lt;UIKit/UITextView.h&gt; #import &lt;UIKit/UIToolbar.h&gt; #import &lt;UIKit/UITouch.h&gt; #import &lt;uikit/uiv ideoeditorcontroller.h&gt; #import &lt;UIKit/UIView.h&gt; #import &lt;UIKit/UIViewController.h&gt; #import &lt;uikit /uiwebview.h&gt; #import &lt;UIKit/UIWindow.h&gt;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.