Skip to content

Commit b513d28

Browse files
committed
优化代码缩进显示效果
1 parent 3246042 commit b513d28

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

01《招聘一个靠谱的iOS》面试题参考答案/《招聘一个靠谱的iOS》面试题参考答案(上).md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,26 @@
6464
6565
6666
```Objective-C
67-
// .h文件
68-
// http://weibo.com/luohanchenyilong/
69-
// https://github.com/ChenYilong
70-
// 修改完的代码,这是第一种修改方法,后面会给出第二种修改方法
67+
// .h文件
68+
// http://weibo.com/luohanchenyilong/
69+
// https://github.com/ChenYilong
70+
// 修改完的代码,这是第一种修改方法,后面会给出第二种修改方法
7171
72-
typedef NS_ENUM(NSInteger, CYLSex) {
73-
CYLSexMan,
74-
CYLSexWoman
75-
};
72+
typedef NS_ENUM(NSInteger, CYLSex) {
73+
CYLSexMan,
74+
CYLSexWoman
75+
};
7676
77-
@interface CYLUser : NSObject<NSCopying>
77+
@interface CYLUser : NSObject<NSCopying>
7878
79-
@property (nonatomic, readonly, copy) NSString *name;
80-
@property (nonatomic, readonly, assign) NSUInteger age;
81-
@property (nonatomic, readonly, assign) CYLSex sex;
79+
@property (nonatomic, readonly, copy) NSString *name;
80+
@property (nonatomic, readonly, assign) NSUInteger age;
81+
@property (nonatomic, readonly, assign) CYLSex sex;
8282
83-
- (instancetype)initWithName:(NSString *)name age:(NSUInteger)age sex:(CYLSex)sex;
84-
+ (instancetype)userWithName:(NSString *)name age:(NSUInteger)age sex:(CYLSex)sex;
83+
- (instancetype)initWithName:(NSString *)name age:(NSUInteger)age sex:(CYLSex)sex;
84+
+ (instancetype)userWithName:(NSString *)name age:(NSUInteger)age sex:(CYLSex)sex;
8585
86-
@end
86+
@end
8787
```
8888

8989

0 commit comments

Comments
 (0)