Comments (7)
Hello @khunshan,
Yes it is a way. In next version this will be much easy.
Anyway if you create a new ViewController (A) for below view (CarbonTabSwipeNavigation) and use this (A) as rootViewController for CarbonTabSwipe and then addSubview A.view to rootView.
@interface HomeViewController () <CarbonTabSwipeDelegate>
{
UIViewController *A;
}
@end
@implementation HomeViewController
- (void)viewDidLoad {
[super viewDidLoad];
A = [[UIViewController alloc] init];
A.view.frame = CGRectMake(0, 200, 320, 300); // just creating a frame
[self.view addSubview:A.view];
NSArray *names = @[@"ONE", @"TWO", @"THREE", @"FOUR", @"FIVE", @"SIX", @"SEVEN", @"EIGHT", @"NINE", @"TEN"];
UIColor *color = [UIColor white];
tabSwipe = [[CarbonTabSwipeNavigation alloc] createWithRootViewController:A tabNames:names tintColor:color delegate:self];
}
@end
I hope this will help you ;)
from carbonkit.
Thanks , it's working nice.
from carbonkit.
I missed it. However. I am glad it does work now.
On Mon, Oct 26, 2015 at 12:55 PM, ancheng [email protected] wrote:
Thanks , it's working nice.
—
Reply to this email directly or view it on GitHub
#40 (comment)
.
Khunshan S. Ahmad
from carbonkit.
My Header Height is 64 how can i set CarbonTabSwipeNavigation start from 64....Plz Help Me...
class MessgeVC: UIViewController,CarbonTabSwipeNavigationDelegate
{
var items = NSArray()
var carbonTabSwipeNavigation: CarbonTabSwipeNavigation = CarbonTabSwipeNavigation()
override func viewDidLoad()
{
super.viewDidLoad()
self.title = "Message"
items = ["Agent", "Comment"]
carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: items as [AnyObject], delegate: self)
carbonTabSwipeNavigation.insertIntoRootViewController(self)
carbonTabSwipeNavigation.setNormalColor(UIColor(white: 1, alpha: 0.8))
carbonTabSwipeNavigation.setSelectedColor(UIColor.whiteColor())
self.style()
}
it started from (0,0,320,30) how can i solve this issue???
from carbonkit.
use [carbonTabSwipeNavigation insertIntoRootViewController:self andTargetView:yourView];
from carbonkit.
class MessgeVC: UIViewController,CarbonTabSwipeNavigationDelegate
{
var items = NSArray()
var carbonTabSwipeNavigation: CarbonTabSwipeNavigation =
CarbonTabSwipeNavigation()
var a: UIViewController!
override func viewDidLoad() {
super.viewDidLoad()
a.view.frame = CGRectMake(0, 64, 320, 30)
self.view.addSubview(a.view)
self.title = "Message"
items = ["Agent", "Comment"]
carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: items as
[AnyObject], delegate: self)
carbonTabSwipeNavigation.insertIntoRootViewController(self,
andTargetView: a.view)
I had place this code but its not working what can i do for
carbonTabSwipeNavigation Started from 0,64,320,30....Help Me Bro....
On Wed, May 18, 2016 at 1:39 AM, Ermal Kaleci [email protected]
wrote:
use [carbonTabSwipeNavigation insertIntoRootViewController:self
andTargetView:yourView];—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#40 (comment)
from carbonkit.
create a UIView not UIViewController. you can do it from storyboard and create an IBOutlet
from carbonkit.
Related Issues (20)
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 1
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 28
- iOS 13 Crash: returned nil from -traitCollection, which is not allowed. HOT 1
- swipe not work in iOS 13 HOT 2
- swipe not work in iOS 13 in real device but in simulator working fine HOT 1
- Tab no more scrollable HOT 4
- Get error when initial CarbonTabSwipeNavigation in iOS 10
- How to change selected tab background color ? HOT 1
- NSInternalInconsistencyException error in iOS 13.2.2 and Xcode 11.3.1 Beta HOT 10
- clear the selected colour of segment controller HOT 4
- Full screen - Notch issue
- Change Selected index Background color
- CarbonKit toolbar Position change
- Method "initWithItems:toolbar:delegate" marked as deprecated
- Why it is showing like default segment controls?
- target view was not working
- Add a mask when tab changes HOT 1
- carbon kit freezes rest of the app works fine HOT 1
- how can I change colour of bar it looks like this and as per our requirement we need white colour HOT 2
- Unable to swipe after tapped on any tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbonkit.