Ios5 newly developed API Overview

Source: Internet
Author: User
1. uistepper

Ios5 new UI control, used for digital input.

2. New Style of uialertview
 
Typedef Enum {Uialertviewstyledefault= 0, Uialertviewstylesecuretextinput,// Password input boxUialertviewstyleplaintextinput,// General input boxUialertviewstyleloginandpasswordinput// Two input boxes }Uialertviewstyle;@ Property(Nonatomic, assign)Uialertviewstyle alertviewstyle;- (Uitextfield*)Textfieldatindex:(Nsinteger)Textfieldindex
3. Adjust the brightness of tv4.uiscreen
 
@ Property (Nonatomic)Cgfloat brightness;@ Property (Nonatomic) BoolWantssoftwaredimming;
5. uiscrollview delegate: Delegate when dragging
 
- (Void)Scrollviewwillenddragging:(Uiscrollview*)SV withvelocity:(Cgpoint)Velocity targetcontentoffset:(Inout cgpoint*)TCO;
6. uireferencelibraryviewcontroller display Glossary
 
- (ID)Initwithterm:(Nsstring *)Term;+ (Bool)Dictionaryhasdefinitionforterm:(Nsstring *)Term;
7. uisplitviewcontroller delegate. When hidden, the delegate
- (Bool)Splitviewcontroller:(Uisplitviewcontroller*)SVC shouldhideviewcontroller:(Uiviewcontroller*)VC inorientation:(Uiinterfaceorientation)Orientation;
8. uitableview delegate: Delegate when the cell is copied or cut
- (Bool)Tableview:(Uitableview*)TV shouldshowmenuforrowatindexpath:(Nsindexpath *)IP address;- (Bool)Tableview:(Uitableview*)TV canw.maction:(Sel)Action forrowatindexpath:(Nsindexpath *)IP address;- (Void)Tableview:(Uitableview*)TV broadcast maction:(Sel)Action forrowatindexpath:(Nsindexpath *)Indexpath;
9. uitableviewcell: Obtain the cell from the XIB file.
- (Void)Registernib:(Uinib*)NIB forcellreuseidentifier:(Nsstring *)Identifier;
10. uiwindow keyboard specifications, which are not supported when the keyboard frame is changed.
 
Nsstring *ConstUikeyboardwillchangeframenotification;Nsstring *ConstUikeyboarddidchangeframenotification;
11. uiimage, image Animation
+ (Uiimage*)Animatedimagenamed:(Nsstring *)Name duration:(Nstimeinterval)Duration;+ (Uiimage*)Animatedimagewithimages:(Nsarray *)Images duration:(Nstimeinterval)Duration;@ Property (Nonatomic, readonly) Nsarray *Images;@ Property (Nonatomic, readonly)Nstimeinterval duration;

Image tile and stretch

 
-(Uiimage*)Resizableimagewithcapinsets:(Uiedgeinsets)I;
12. uistoryboard, story Edition
@ Property (Readonly, retain)Uistoryboard*Storyboard;- (Void)Performseguewithidentifier:(Nsstring *)IDSender:(ID)Sender;- (Void)Prepareforsegue:(Uistoryboardsegue*)Segue sender:(ID)Sender;
13. uislider, change the color
 
[Aslider setminimumtracktintcolor:[Uicolor redcolor]];
14. Apply uiappearance to all attributes
@ ProtocolUiappearance≪ nsobject>+ (ID)Appearance ;...@ End # Define ui_appearance_selector

Eg:

 
[[Uislider appearance]Setminimumtracktintcolor: [Uicolor redcolor]];//ProgramTo red
15. Uipageviewcontroller
- (ID)Initwithtransitionstyle: (Uipageviewcontrollertransitionstyle)Style navigationorientation:(Uipageviewcontrollernavigationorientation)Orientation Options:(Nsdictionary *)Options;ID ≪ uipageviewcontrollerdelegate> delegate;ID ≪ uipageviewcontrollerdatasource> datasource;

Uipageviewcontrollerdelegate

- (Void)Pageviewcontroller:(Uipageviewcontroller*)PVC didfinishanimating:(Bool)Finished previusviewcontrollers:(Nsarray *)Prevviewcs transitioncompleted:(Bool)Completed;- (Uipageviewcontrollerspinelocation)Pageviewcontroller:(...)PVC spinelocationforinterfaceorientation:(...)O;

Uipageviewcontrollerdatasource

- (Uiviewcontroller*)Pageviewcontroller:(Uipageviewcontroller*)PVC viewcontrollerbeforeviewcontroller:(Uiviewcontroller*)C;- (Uiviewcontroller*)Pageviewcontroller:(Uipageviewcontroller*)PVC viewcontrollerafterviewcontroller:(Uiviewcontroller*)C;
16. Uiviewcontroller
 -  (  Void  ) Addchildviewcontroller :  ( Uiviewcontroller *  ) CVC;-  (  Void  ) Removefromparentviewcontroller; @ Property   ( Readonly )   Nsarray   * Childviewcontrollers; -  (  Void  ) Transitionfromviewcontroller :  ( Uiviewcontroller *  ) FVC toviewcontroller :  ( Uiviewcontroller *  ) Toviewcontroller duration :  ( Nstimeinterval) Duration options :  ( Uiviewanimationoptions ) Options animations :  (  Void   (  ^  )  (  Void  )  ) Animations completion :  (  Void   (  ^  )  (  Bool Finished )  ) Completion;
17. uidocument
 -   ( ID  ) Initwithfileurl :  (  Nsurl   *  ) URL; @ Property   ( Readonly )   Nsurl   * Fileurl; @ Property   ( Readonly, copy )   Nsstring   * Localizedname; @ Property   ( Readonly, copy )   Nsstring   * Filetype; @ Property   ( Copy )  Nsdate   * Filemodificationdate; @ Property   ( Retain )   Nsundomanager   * Undomanager; -   (  Void  ) Openwithcompletionhandler :   (  Void   (  ^  )  (  Bool Success )  ) Completionhandler; -   (  Void  ) Closewithcompletionhandler:   (  Void   (  ^  )  (  Bool Success )  ) Completionhandler; -   (  Bool  ) Loadfromcontents :  (  ID  ) Contents oftype :  (  Nsstring   *  ) Typename Error :  (  Nserror   **  ) Outerror;-   (  ID  ) Contentsfortype :  (  Nsstring   *  ) Typename Error :  (  Nserror   **  ) Outerror;

Errors

- (Void)Handleerror:(Nserror *)Error userinteractionpermitted:(Bool)Interactionpermitted;- (Void)Finishedhandlingerror:(Nserror *)Error recovered:(Bool)Recovered;- (Void)Userinteractionnolongerpermittedforerror: (Nserror *)Error;

Document states

Enum {Uidocumentstatenormal, uidocumentstateclosed= 1 ≪≪0, Uidocumentstateinconflict= 1 ≪≪1, Uidocumentstatesavingerror= 1 ≪≪2, Uidocumentstateeditingdisabled= 1 ≪≪3 };TypedefNsinteger uidocumentstate;@ Property (Readonly)Uidocumentstate documentstate;Nsstring *ConstUidocumentstatechangednotification;
18. manage the resource library (not understood)

? Alassetslibrary

- (Void)Addassetsgroupalbumwithname:(Nsstring *)Name resultblock:(Alassetslibrarygroupresultblock)R;

? Alassetsgroup

 
- (Bool)Addasset:(Alasset*)Asset;

Modifying

-(Void)Writemodifiedimagedatatosavedphotosalbum:(Nsdata *)D metadata:(Nsdictionary *)Metadata completionblock:(Alassetslibrarywriteimagecompletionblock)Block;-(Void)Setimagedata:(Nsdata *)Data Metadata:(Nsdictionary *)Metadata completionblock:(Alassetslibrarywriteimagecompletionblock)Block;
19. Miscellaneous

Gamekit

Core Data

Newsstandkit

Twitter

Coreimage

Glkit

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.