Commit fd17eabe71c9a59134ee6e8f212e4bac8201066f
1 parent
82ff9f0d
no message
Showing
3 changed files
with
4 additions
and
3 deletions
CNLiveBMineModule.podspec
| @@ -126,5 +126,5 @@ TODO: 网家家企业版-我的模块. | @@ -126,5 +126,5 @@ TODO: 网家家企业版-我的模块. | ||
| 126 | 126 | ||
| 127 | s.static_framework = true | 127 | s.static_framework = true |
| 128 | s.xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } | 128 | s.xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } |
| 129 | - | 129 | + s.pod_target_xcconfig ={'OTHER_LDFLAGS' =>'-ObjC'} |
| 130 | end | 130 | end |
CNLiveBMineModule/Classes/Controller/CNLiveMineController.m
| @@ -24,6 +24,7 @@ | @@ -24,6 +24,7 @@ | ||
| 24 | 24 | ||
| 25 | #import "CNLiveUserInfoController.h" | 25 | #import "CNLiveUserInfoController.h" |
| 26 | #import "CNLiveSettingController.h" | 26 | #import "CNLiveSettingController.h" |
| 27 | +#import "CNLiveHomePageProtocol.h" | ||
| 27 | 28 | ||
| 28 | @interface CNLiveMineController()<UITableViewDelegate, UITableViewDataSource, CNLiveMineHeaderViewDelegate> | 29 | @interface CNLiveMineController()<UITableViewDelegate, UITableViewDataSource, CNLiveMineHeaderViewDelegate> |
| 29 | @property (nonatomic, strong) UITableView *tableView; | 30 | @property (nonatomic, strong) UITableView *tableView; |
| @@ -135,7 +136,8 @@ static const CGFloat timeValue = 1.5; | @@ -135,7 +136,8 @@ static const CGFloat timeValue = 1.5; | ||
| 135 | break; | 136 | break; |
| 136 | case CNLiveMineHeaderViewTypeHome: | 137 | case CNLiveMineHeaderViewTypeHome: |
| 137 | { | 138 | { |
| 138 | - | 139 | + id<CNLiveHomePageProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveHomePageProtocol)]; |
| 140 | + [service pushLiveHomePageViewController]; | ||
| 139 | } | 141 | } |
| 140 | break; | 142 | break; |
| 141 | } | 143 | } |
CNLiveBMineModule/Classes/View/CNLiveMineHeaderView.m
| @@ -230,7 +230,6 @@ static const NSInteger margin = 20; | @@ -230,7 +230,6 @@ static const NSInteger margin = 20; | ||
| 230 | 230 | ||
| 231 | - (void)homeDidClicked:(UIButton *)btn{ | 231 | - (void)homeDidClicked:(UIButton *)btn{ |
| 232 | if (self.delegate && [self.delegate respondsToSelector:@selector(headerView:pushToController:)]) { | 232 | if (self.delegate && [self.delegate respondsToSelector:@selector(headerView:pushToController:)]) { |
| 233 | - btn.userInteractionEnabled = NO; | ||
| 234 | [self.delegate headerView:self pushToController:CNLiveMineHeaderViewTypeHome]; | 233 | [self.delegate headerView:self pushToController:CNLiveMineHeaderViewTypeHome]; |
| 235 | } | 234 | } |
| 236 | } | 235 | } |