mirror of
https://github.com/leanote/leanote-ios.git
synced 2025-10-15 15:40:44 +00:00
57 lines
1.3 KiB
Objective-C
Executable File
57 lines
1.3 KiB
Objective-C
Executable File
//
|
|
// Leanote
|
|
//
|
|
// Created by life on 03/06/15.
|
|
// Copyright (c) 2015 Leanote.com. All rights reserved.
|
|
//
|
|
|
|
#import "BaseTab.h"
|
|
|
|
@interface BaseTab ()
|
|
@end
|
|
|
|
@implementation BaseTab
|
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
{
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
if (self) {
|
|
// Custom initialization
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view.
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning
|
|
{
|
|
[super didReceiveMemoryWarning];
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
/*
|
|
#pragma mark - Navigation
|
|
|
|
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
|
|
{
|
|
// Get the new view controller using [segue destinationViewController].
|
|
// Pass the selected object to the new view controller.
|
|
}
|
|
*/
|
|
|
|
// 设置图片, selectedImage
|
|
-(void)setTabBarImage{
|
|
if (self.tabbarItemImagePath) {
|
|
self.tabBarItem.image = [UIImage imageNamed: self.tabbarItemImagePath];
|
|
NSString * selectedImagePath=[NSString stringWithFormat:@"%@_sel",self.tabbarItemImagePath];
|
|
self.tabBarItem.selectedImage = [UIImage imageNamed:selectedImagePath];
|
|
}
|
|
|
|
}
|
|
@end
|