iOS Details NSObject Protocol
_protocol is a set of interfaces that are declared to have all the methods in the protocol after a protocol has been complied with. The NSObject class complies with the NSObject protocol and implements all the methods in the NSObject protocol, so the NSObject class and its subclasses can call these methods. This paper mainly introduces the meth ...
Posted by Flyier on Tue, 02 Jul 2019 16:43:59 -0700
Exploration of the Reasons why iOS Classification Can't Add Attributes
Recently, when communicating with people, a question was raised that attributes could not be added to iOS classifications. Here we discuss the reasons why we can't add it and the ways to add it. First, create a person class with the following code:
XGPerson.h
#import <Foundation/Foundation.h>
@interface XGPerson : NSObject
/// Age
@pro ...
Posted by thisisnuts123 on Tue, 02 Jul 2019 15:08:53 -0700
NSAttributedString attribute string
1. Property name
1 > NSFontAttributeName (font) The value corresponding to this property is a UIFont object. This property is used to change the font of a paragraph of text. If this property is not specified, the default is 12-point Helvetica(Neue).2 > NSParagraph Style Attribute Name (paragraph) The value corresponding to this property ...
Posted by Henks on Tue, 02 Jul 2019 12:36:29 -0700
Detailed XCTest for iOS unit testing
Detailed XCTest for iOS unit testing
Preface: test Is an integral part of a good App.Each App is a small set of features.And these small functions are a function or a function algorithm Grouped together.Unit testing is about testing these small functions or functions, and good unit testing can make your code much more rob ...
Posted by dr bung on Tue, 02 Jul 2019 10:12:14 -0700
Usage Details and Customization of UITabBarController
brief introduction
UITabBarController - tab controllers, like navigation controllers, are also widely used in various ios applications. As the name implies, the tab controller displays a series of "pick-up cards" at the bottom of the screen, which are represented as icons and text, and the user touches them to switch between different ...
Posted by jonex on Mon, 01 Jul 2019 16:19:55 -0700
IOS AFNet Working and Thread Synchronization
In iOS development, the data of pages is not acquired through an interface. Sometimes it is necessary to acquire data from multiple interfaces of servers, and then update the pages. Sometimes it is necessary to acquire data from one interface and then acquire data from other interfaces.
The source framework AFNetWorking is a powerful third-pa ...
Posted by planethax on Sun, 30 Jun 2019 13:08:56 -0700
Singleton mode in iOS
The concept of singletons
A singleton class ensures that there is only one instance object of that class in the application's life cycle and that it is accessible from the outside world.There are many singleton classes in iOS, such as UIApplication,UIScreen,NSNotificationCenter,NSFileManager,NSUserDefaults,NSURLCache,NSHTTPCookieStorage, and ...
Posted by simplyi on Sun, 30 Jun 2019 12:26:47 -0700
H5 Front-end Development and Filling Consolidation
meta-basic knowledge
H5 page window automatically adjusts to device width and prohibits users from scaling pages
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
Ignore identifying numbers on pages as phone numbers
<meta name="format-detection" conten ...
Posted by abigbluewhale on Sun, 30 Jun 2019 12:24:13 -0700
iOS NSMutableAttributedString Usage Details
1. Property name
1> NSFontAttributeName (Font)
The value corresponding to this property is a UIFont object.This property is used to change the font of a piece of text.If this property is not specified, it defaults to 12-point Helvetica(Neue).
2> NSParagraph StyleAttributeName (Paragraph)
The value corresponding to this property is a N ...
Posted by alexu' on Sun, 30 Jun 2019 09:53:01 -0700
Exploration of iOS Development-Gauss Fuzzy-Ground Glass Effect
In the development of iOS, sometimes it is necessary to set blurred pictures to achieve better user experience for specific effects. After iOS7, translucent blurring effect has been widely used. Now it can be seen that many applications use image blurring effect locally, and can achieve image blurring effect through Gauss blurring and ground ...
Posted by markspec87 on Sat, 29 Jun 2019 13:23:21 -0700