Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5381eaf

Browse files
committed
fix macos loadview
1 parent 143357f commit 5381eaf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎Example/Common/MRCrossPlatformUtil.m‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,28 +128,26 @@ CGContextRef __nullable UIGraphicsGetCurrentContext(void)
128128

129129
@implementation MRBaseViewController
130130

131+
#if TARGET_OS_IPHONE
131132
- (void)loadView
132133
{
133-
#if TARGET_OS_IPHONE
134134
NSString *nibName = [NSStringFromClass([self class]) stringByAppendingString:@"-iOS"];
135135
UINib *nib = [UINib nibWithNibName:nibName bundle:nil];
136136
NSArray *views = [nib instantiateWithOwner:self options:nil];
137137
self.view = [views firstObject];
138-
#endif
139138
}
140139

141140
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
142141
{
143-
#if TARGET_OS_IPHONE
144142
nibNameOrNil = nil;
145-
#endif
146143
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
147144
if (self) {
148145

149146
}
150147
return self;
151148
}
152149

150+
#endif
153151
#if TARGET_OS_IPHONE
154152
- (void)viewWillAppear:(BOOL)animated
155153
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /