sergik-ru / smtabbedsplitviewcontroller Goto Github PK
View Code? Open in Web Editor NEWTabbed Split View Controller for iPad
License: MIT License
Tabbed Split View Controller for iPad
License: MIT License
Hi,
First of all, I would like to thank you for providing such flexible repository.
Unfortunately I found an issue while toggling the master view. This functions are working properly
Here is my code:
//FirstController.m
- (IBAction)InitializeSplit:(id)sender {
SMTabbedSplitViewController *split = [[SMTabbedSplitViewController alloc] initSplit];
SMTestMasterViewController *tab1VC = [[SMTestMasterViewController alloc] init];
tab1VC.view.backgroundColor = [UIColor colorWithRed:0/255.0 green:127/255.0 blue:237/255.0 alpha:1.0];
SMTabBarItem *tab1 = [[SMTabBarItem alloc] initWithVC:tab1VC image:[UIImage imageNamed:@"Twitter"] andTitle:@"Twitter"];
tab1.selectedImage = [UIImage imageNamed:@"Twitter_sel"];
tab1VC.textLabel.text = tab1.title;
tab1VC.imageView.image = [UIImage imageNamed:@"twitter-logo"];
tab1VC.siteURL = @"https://www.twitter.com";
SMTestDetailViewController *detailVC = [[SMTestDetailViewController alloc] init];
detailVC.siteURL = [NSURL URLWithString:tab1VC.siteURL];
split.viewControllers = @[tab1VC, detailVC];
split.background = [UIColor whiteColor];
[self.navigationController pushViewController:split animated:YES];
}
// SMTestDetailViewController.m
- (IBAction)showOrHideMasterClick:(id)sender {
UINavigationController *nc = (UINavigationController *)[[[UIApplication sharedApplication] delegate] window].rootViewController;
SMTabbedSplitViewController *split = (SMTabbedSplitViewController *)nc.topViewController;
if(self.btnMaster.tag){
//Hide master
[self.btnMaster setTitle:@"Show master" forState:UIControlStateNormal];
[split hideMaster];
}else{
[self.btnMaster setTitle:@"Hide master" forState:UIControlStateNormal];
[split showMaster];
}
self.btnMaster.tag=!self.btnMaster.tag;
}
Can you please suggest.
I have set tab bar badge value but it is not showing on view
tab1VC.tabBarItem.badgeValue=@"100";
Does SMTabBar lacks badgeValue property ?If it is so how can i gain this property .
pod 'SMTabbedSplitViewController', '>= 1.0.3โ should be pod 'SMTabbedSplitViewController', '>= 1.0.3'
How can I set default selected index about tabbar? some function like selectedIndex:(int)index
Hi ,
I love the frame u made , but i have an issue
When I create a new viewcontroller which subclass to SMTabbedSplitViewController , and connect with other viewcontrollers via segue push , it seems doesn't work though I've re-write -init method
Finally I use the code below , it works
- (IBAction)login:(id)sender {
SplitMainViewController *split=[[SplitMainViewController alloc] initTabbedSplit];
[self.navigationController pushViewController:split animated:YES];
}
Is there some other way to use it in storyboard ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.