1, soft-coded and hard-coded how to differentiate between soft coding: using the CPU encoding hard-coded: Using non-CPU encoding, such as graphics card GPU, dedicated DSP, FPGA, ASIC chip, etc. 2, continuousAnimationNsoperationqueue serial UIView and Calayer with animations 3, Uiimageviewuiimageview setanimationimages and startanimating
4. Class load function + (void) Initializethus The method may never be invoked if the class was not used the runtime sends the initialize MES Sage to classes in a thread-safe manner. Superclasses receive this message before their subclasses. + (void) Loadin Addition:a class ' s +load method is called after all of the its superclasses ' +load methods. A Category +load method is called after the class ' s own +load method. Apple's documentation clearly shows that the difference between initialize and load is that load is called whenever a file of the class is referenced, and initialize is called before the first method of the class or its subclasses is called. So if the class is not referenced into the project, there will be no load call, but even if the class file is referenced but not used, then initialize will not be called. 5, Animationviewmanager design Protocal1, view call Manager, transfer animation type and display view. 2. Manager creates a new type of animation, added to view. 3, the manager calls the General animation start interface. 4, the view Call manager, the animation has not ended, into the queue. 5, the animation playback end, callback Manager,manager restart animation. Animation.delegate will have strong reference if Animation.delegate = self, then there will be retain cycleself.view.layer removeAnimationForKey:@THE_ANIMATION_KEY]
Layer animation in the background when the callback with Animationdidstop 6, exception handling//Registration exception handling Nssetuncaughtexceptionhandler (&uncaughtexceptionhan Dler);7, TextkitNstextattachment actually just use nstextattachment to insert the image as a character processing, converted to nsattributedstring, and then uitextview directly to the rendering is done. The above code is to initialize a nstextattachment, and then set the Image property, you can also use Nstextattachment's init (data contentdata:nsdata?, OfType Uti:stri Ng?) method to set the picture.
8. Position of Layer The position is used to set the position of Calayer in the parent layer Anchorpoint determines which point of Calayer is in the position attribute refers to the location 9, resolves the URL of the query string "' Nsurlcomponents *urlcomponents = [nsurlcomponents componentswithurl:[request URL] Resolvingagainstbaseurl:no]; Nsarray *queryitems = Urlcomponents.queryitems; NSString *type = [self valueforkey:@ "type" fromqueryitems:queryitems]; "10, persistent [source]ios data Persistence sqlitepersistentobject an object corresponding to a table, object name peristableperson corresponding table name Persistable_person, The property name LastName corresponds to the field name Last_Name, which is "_" before the uppercase letter and the uppercase letter is replaced with lowercase. Does not change without capital letters.
Property names cannot be added "_", such as last_name, otherwise the property value is nil when queried, even if the database is not NULL. 1,%: Represents any of 0 or more characters. Can match any type and length of the character, in some cases, if Chinese, please use two percent sign (%). 2,_: Represents any single character. Matches a single arbitrary character, which is commonly used to restrict the expression's character-length statement: 3,[]: represents one of the characters listed in parentheses (similar to a regular expression). Specifies a character, string, or range that requires matching objects to be any of them. 4,[^]: Represents a single character that is not listed in parentheses. The value is the same as [], but it requires that the matched object be any character other than the specified character. 5, the query content contains wildcard characters because of the wildcard character, resulting in our query special characters "%", "_", "[" statement can not be implemented, and special characters with "[]" in the normal query. 11, StatusBar Notice Cwstatusbarnotification
iOS Development notes (13)