Commit f2b839a9 authored by 汪洋's avatar 汪洋

initReferer; initReferrerIdIfNil 优化

parent 7938974f
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
*/ */
- (void)initReferer { - (void)initReferer {
// 只有不为空,且是controller的情况下才自动获取 // 只有不为空,且是controller的情况下才自动获取
if (self.referer == nil && [self isKindOfClass:[UIViewController class]]) { if ([self.referer isEqualToString:@""] && [self isKindOfClass:[UIViewController class]]) {
// 分present与navigation两种情况 // 分present与navigation两种情况
UIViewController *me = (UIViewController *)self; UIViewController *me = (UIViewController *)self;
if (me.presentingViewController != nil) { if (me.presentingViewController != nil) {
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
- (void)initReferrerIdIfNil { - (void)initReferrerIdIfNil {
// 只有不为空,且是controller的情况下才自动获取 // 只有不为空,且是controller的情况下才自动获取
if (self.referrerId == nil && [self isKindOfClass:[UIViewController class]]) { if ([self.referrerId isEqualToString:@""] && [self isKindOfClass:[UIViewController class]]) {
// 分present与navigation两种情况 // 分present与navigation两种情况
UIViewController *me = (UIViewController *)self; UIViewController *me = (UIViewController *)self;
if (me.presentingViewController != nil) { if (me.presentingViewController != nil) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment