Platform:ios, ' 7.0 '
Pod "afnetworking", "~> 2.0"
The pods file turns out this way.
After using the Xctest, the error is: afnetworking cause error while using Xctest in XCODE5.
To add a sentence in the middle:
Link_with ' Supermark ', ' supermarktests '
-OBJC: The use of this flag is related to a key feature of objective-c: category. As explained here, there are some conflicts between the standard static library implementation of UNIX and the dynamic nature of Objective-c: Objective-c does not define a link symbol for each function (or method), it creates a link symbol for each class. This way, when you use categories in a static library to extend an existing class, the linker does not know how to integrate the methods in the original class with the method in the category, causing you to invoke the method in the category with "selector not recognized", which means that the method definition error is not found. In order to solve this problem, the-OBJC flag is introduced, and its function is to load all the object-related files in the static library. iOS global contains header files. pch Arc and non-arc mixed: If arc is used in non-arc, add to the file that does not require arc: -fno-objc-arc. Compile the label. How the group of Xcode corresponds to a folder: (double-clicking the show in Finder can show the folder directly) delete the group directly, remember to choose Reference, do not move to trash. You can then add the entire folder in. Note: The compilation options for all files inside the folder need to be reset, and later use this feature with caution. Warning Automatic Preferred Max Layout Width is isn't available on IOS versions prior to 8.0 The UILabel uses Preferred Max Layout Width, which causes numberoflines as long as it's not 1. Solution: 1 upgrade to iOS8 above 2 change this option value of the label to a non-default value UIV Iewcontroller View's life cycle Uiviewcontroller view is a lazy loading, and when you access its View property, it is loaded from the Xib file or created through code (overriding the Loadview method, customizing its view hierarchy), and returning the View object , if you want to determine whether a view controller's view has been loaded, it needs to be judged by the Isviewloaded method it provides. After the view is loaded, the viewdidload is called, where some data can be requested or loaded to update your interface. When the view is added to the view hierarchy, the viewwillappear will be called and the view will be viewdidappear when it is added, as the view will be Viewwilldisappear will be called when the hierarchy is removed and viewdiddisappear will be called when the removal is complete. When memory is tight, the didreceivememorywarning of all Uiviewcontroller objects is called, and the default implementation is if the Superview of the current Viewcontroller view is nil, The view is released and Viewdidunload is called, and you can perform subsequent memory cleanup work (primarily the release of the interface element, which needs to be rebuilt when loading again) viewdidunload. The relationship between controllers: In fact, the trigger of the callback that shows or rotates comes from the window, an app first has a main window, and when it is initialized it needs to assign a Rootviewcontroller,window to the main window that will display the associated callback ( Viewwillappear:, Viewwilldisappear:, Viewdidappear:, or viewdiddisappear:) and rotation-related callbacks ( Willrotatetointerfaceorientation:duration:, Willanimaterotationtointerfaceorientation:duration:, Didrotatefrominterfaceorientation:) passed to Rootviewcontroller. Rootviewcontroller needs to pass these callbacks calls to its child View Controllers. The above content is partly from the Internet, infringement please contact me (comments, comments can be), immediately deleted.
iOS Development Notes (iii)