Commit ccc85ca3 authored by 叶凤鸣's avatar 叶凤鸣

新增homeTabName

parent 352e5740
......@@ -58,4 +58,9 @@
*/
@property (nonatomic, copy, nonnull) NSString *extraParam;
/**
上一个页面tab名称
*/
@property (nonatomic, copy) NSString *homeTabName;
@end
......@@ -134,4 +134,13 @@
return extraParam == nil ? @"" : extraParam;
}
- (void)setHomeTabName:(NSString *)homeTabName {
objc_setAssociatedObject(self, @selector(homeTabName), homeTabName, OBJC_ASSOCIATION_COPY);
}
- (NSString *)homeTabName {
NSString *homeTabName = objc_getAssociatedObject(self, @selector(homeTabName));
return homeTabName == nil ? @"" : homeTabName;
}
@end
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