Skip to content

Commit

Permalink
优化方法
Browse files Browse the repository at this point in the history
  • Loading branch information
MRJ authored and MRJ committed Sep 15, 2017
1 parent 1a61206 commit 29156e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MRJ_BarViewController.podspec
Expand Up @@ -8,8 +8,8 @@

Pod::Spec.new do |s|
s.name = 'MRJ_BarViewController'
s.version = '0.1.4'
s.summary = '一个可以支持AppleTV的导航栏,这是个好的开始.'
s.version = '0.1.5'
s.summary = '对导航栏做了兼容,可以支持Apple TV的一个tabbar,后续会继续优化!'

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
Expand Down
2 changes: 1 addition & 1 deletion TableBarViewController/Classes/MRJ_TabBar.h
Expand Up @@ -28,7 +28,7 @@
/**
* 已经切换到指定index
*/
- (void)MRJ__tabBar:(MRJ_TabBar *)tabBar didSelectedItemAtIndex:(NSUInteger)index;
- (void)tabBar:(MRJ_TabBar *)tabBar didSelectedItemAtIndex:(NSUInteger)index;

@end

Expand Down
4 changes: 2 additions & 2 deletions TableBarViewController/Classes/MRJ_TabBar.m
Expand Up @@ -312,8 +312,8 @@ - (void)setSelectedItemIndex:(NSUInteger)selectedItemIndex {
// 如果tabbar支持滚动,将选中的item放到tabbar的中央
[self setSelectedItemCenter];

if (self.delegate && [self.delegate respondsToSelector:@selector(MRJ__tabBar:didSelectedItemAtIndex:)]) {
[self.delegate MRJ__tabBar:self didSelectedItemAtIndex:selectedItemIndex];
if (self.delegate && [self.delegate respondsToSelector:@selector(tabBar:didSelectedItemAtIndex:)]) {
[self.delegate tabBar:self didSelectedItemAtIndex:selectedItemIndex];
}
}

Expand Down
Binary file removed functionTbale.png
Binary file not shown.

0 comments on commit 29156e4

Please sign in to comment.