One, the definition of method name
1. The configuration view should not be named Setxxxx, but should be called showxxxx
2. Make the button highlight should not be called showxxx, but should be called highlightedxxx.
3, pop Toastview can be used showxxx.
4, add a prefix to the URL string can be used:addhttpprefixifneeded.
5,#define TASKNAME_ACTIVATE_APP @"Task_activate_app"
Two, common code specification
1. All macros are added uniformly in the PTVSNotificationMacro.h file, ① reduce compilation speed ② avoid notification name duplication.
such as: static nsstring *const notify_gotoxytabpage = @ "Notify_gotoxytabpage";
2. A good macro definition
#define WEAKSELF __weak typeof (self) weakself = self;
#define IS_STRING_NULL (obj) (![ obj iskindofclass:[nsstring class] | | (obj = nil) | | ([obj Iskindofclass:[nsnull class]]) | | (obj.length = = 0))
IOS Code Specification