Adopting Modern Objective-C
-
-
Change
idtoinstancetypein appropriate places -
Change
enumtoNS_ENUMorNS_OPTIONS- The
NS_ENUMmacro helps define both the name and type of the enumeration, in this case namedUITableViewCellStyleof typeNSInteger. The type for enumerations should beNSInteger.
- The
-
Update to the
@propertysyntax
-
-
-
Converting to literals, so a statement like
[NSNumber numberWithInt:3]becomes@3. -
Using subscripting, so a statement like
[dictionary setObject:@3 forKey:key]becomesdictionary[key] = @3.
-

浙公网安备 33010602011771号