Skip to content

Commit 9cc688b

Browse files
committed
背景色
1 parent 8a72d32 commit 9cc688b

6 files changed

Lines changed: 17 additions & 16 deletions

File tree

Coding_iOS/Controllers/AddTopicViewController.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ - (void)viewDidLoad
3232
{
3333
[super viewDidLoad];
3434
// Do any additional setup after loading the view.
35+
self.view.backgroundColor = [UIColor colorWithHexString:@"0xe5e5e5"];
36+
3537
}
3638

3739
- (void)didReceiveMemoryWarning
@@ -42,11 +44,10 @@ - (void)didReceiveMemoryWarning
4244

4345
- (void)loadView{
4446
[super loadView];
45-
CGRect frame = [UIView frameWithOutNav];
4647

47-
self.view = [[UIView alloc] initWithFrame:frame];
48+
self.view = [[UIView alloc] init];
4849

49-
frame = CGRectMake(0, 30, kScreen_Width, 44);
50+
CGRect frame = CGRectMake(0, 30, kScreen_Width, 44);
5051
UIView *bgWhiteView = [[UIView alloc] initWithFrame:frame];
5152
bgWhiteView.backgroundColor = [UIColor whiteColor];
5253
[bgWhiteView addLineUp:YES andDown:YES];

Coding_iOS/Controllers/MeSetting/AboutViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ - (void)viewDidLoad
2626
{
2727
[super viewDidLoad];
2828
// Do any additional setup after loading the view.
29+
self.view.backgroundColor = [UIColor colorWithHexString:@"0xe5e5e5"];
30+
2931
}
3032

3133
- (void)didReceiveMemoryWarning

Coding_iOS/Controllers/MeSetting/FeedbackViewController.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ - (void)viewDidLoad
3333
{
3434
[super viewDidLoad];
3535
// Do any additional setup after loading the view.
36+
self.view.backgroundColor = [UIColor colorWithHexString:@"0xe5e5e5"];
37+
3638
}
3739

3840
- (void)didReceiveMemoryWarning
@@ -43,11 +45,10 @@ - (void)didReceiveMemoryWarning
4345

4446
- (void)loadView{
4547
[super loadView];
46-
CGRect frame = [UIView frameWithOutNav];
4748

48-
self.view = [[UIView alloc] initWithFrame:frame];
49+
self.view = [[UIView alloc] init];
4950

50-
frame = CGRectMake(0, 30, kScreen_Width, 44);
51+
CGRect frame = CGRectMake(0, 30, kScreen_Width, 44);
5152
UIView *bgWhiteView = [[UIView alloc] initWithFrame:frame];
5253
bgWhiteView.backgroundColor = [UIColor whiteColor];
5354
[bgWhiteView addLineUp:YES andDown:YES];

Coding_iOS/Controllers/RootControllers/BaseViewController.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ - (void)viewDidAppear:(BOOL)animated{
3333
- (void)viewWillAppear:(BOOL)animated
3434
{
3535
[super viewWillAppear:animated];
36-
self.view.backgroundColor = kColorTableBG;
37-
3836
[MobClick beginLogPageView:[NSString stringWithUTF8String:object_getClassName(self)]];
3937
}
4038
- (void)viewWillDisappear:(BOOL)animated
@@ -44,6 +42,13 @@ - (void)viewWillDisappear:(BOOL)animated
4442
[MobClick endLogPageView:[NSString stringWithUTF8String:object_getClassName(self)]];
4543
}
4644

45+
- (void)viewDidLoad{
46+
[super viewDidLoad];
47+
48+
self.view.backgroundColor = kColorTableBG;
49+
50+
}
51+
4752
- (void)tabBarItemClicked{
4853
NSLog(@"\ntabBarItemClicked : %@", NSStringFromClass([self class]));
4954
}

Coding_iOS/Util/OC_Category/UIView+Common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ typedef NS_ENUM(NSInteger, EaseBlankPageType)
4848
- (void)removeViewWithTag:(NSInteger)tag;
4949
- (CGSize)doubleSizeOfFrame;
5050

51-
+ (CGRect)frameWithOutNavTab;
5251
+ (CGRect)frameWithOutNav;
5352
+ (UIViewAnimationOptions)animationOptionsForCurve:(UIViewAnimationCurve)curve;
5453
+ (UIView *)lineViewWithPointYY:(CGFloat)pointY;

Coding_iOS/Util/OC_Category/UIView+Common.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ - (void)addGradientLayerWithColors:(NSArray *)cgColorArray locations:(NSArray *)
126126
}
127127

128128

129-
130-
131-
+ (CGRect)frameWithOutNavTab{
132-
CGRect frame = kScreen_Bounds;
133-
frame.size.height -= (20+44+49);//减去状态栏、导航栏、Tab栏的高度
134-
return frame;
135-
}
136129
+ (CGRect)frameWithOutNav{
137130
CGRect frame = kScreen_Bounds;
138131
frame.size.height -= (20+44);//减去状态栏、导航栏的高度

0 commit comments

Comments
 (0)