The stringWithFormat is used to return a string with a format control, which is a class method
Length: Returns a Nsuinteger type to find the value of the string length
Stringbyappendingstring: Concatenation of two strings, returning a new string
Stringbyappendingformat: Concatenation of the original string with the given string, given a string with a format control, returns a new string
Substringformindex: Returns a new string from the beginning of a position to the end of the substring
Substringtoindex: substring from start to position, return this string
Substringwithrange: The substring is returned according to the given range, which returns the substring
Componentsseparatedbystring: Splits the original string into several parts based on the passed strings, returning an array
Rangeofstring: Give a substring, the range of the string to the original string, return a struct (nsrange);(start position, length)
Stringbyreplacingoccurrencesofstring: Replaces all occurrences of a string in the original string with a new string, returning a new one
Hasprefix: Determines whether the original string header and the given string are consistent, returns a bool value
Hassuffix: Determines whether the tail is consistent and returns a bool value
Isequaltostring: Determines whether two strings are equal and returns a bool value
LowerCaseString: Returns a new string with all uppercase edges lowercase
IntegerValue: The string is converted to the base type, returning the numeric value of the Nsinteger type
Nsmutablestring inherits from NSString, and the unique function has
Appendingstring: Stitching in the original string
Deletecharactersinrange: Delete content within a given range in the original string
Insertstring:aindex: Adds a given string from a location in the original string
Replacecharactersinrange: Starts the given position in the original string, substituting n bytes for the given string powertrain
SetString sets the contents of the original string to the given string
Compare: string comparison that returns a value of type Nscomparisonresult
Nsarray content cannot be modified, only objects can be stored in an array
Arraywithobjects class method, create an array
Objectatindex find the corresponding element in the array based on the given subscript
Count gets the number of array elements
Firstobject
Lastobject
Containsobject determines whether an object is in an array
Indexofobject find the subscript of an object in an array
Isequaltoarray to determine if an array is equal
Nsmutablearray variable Array
Initwithcapacity Creating an array
AddObject adding elements to the array
Insertobject:atindex inserted at the subscript of the original array
Removelastobject Delete last Element
Removeobject: Removing an object from an array
Removeobject:inrange: Deleting a given object within a range of an array
Exchangeobjectatindex:withobjectatindex the position of the elements in the interchange array
Replaceobjectatindex:withobject
Iskindofclass: Judging the type of object
Nsdictionary Non-modifiable dictionaries
Initwithobjectandkeys: Create dictionary, add key value pair to dictionary when initializing, need to input key and value one by one
Dictionarywithobject:forkeys: Class method, which corresponds to a value (array) and a key (array), and returns a dictionary
Count
AllKeys
Allvalues
Objectforkey index data according to key
Nsmutabledictionary class method, create a dictionary that can modify the content
Setobject:forkey: Adding key-value pairs to the dictionary
Removeobjectforkey
Removeobjectforkeys:array
This article is from the "Create a Future" blog, please be sure to keep this source http://zhaopeichina.blog.51cto.com/9782414/1605158
API General Checklist