-
Notifications
You must be signed in to change notification settings - Fork 163
Include with other controls in UIViewController #40
Comments
Hello @khunshan, @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 ;) |
Thanks , it's working nice. |
I missed it. However. I am glad it does work now. On Mon, Oct 26, 2015 at 12:55 PM, ancheng notifications@github.com wrote:
Khunshan S. Ahmad |
My Header Height is 64 how can i set CarbonTabSwipeNavigation start from 64....Plz Help Me... class MessgeVC: UIViewController,CarbonTabSwipeNavigationDelegate
{
} it started from (0,0,320,30) how can i solve this issue??? |
use |
class MessgeVC: UIViewController,CarbonTabSwipeNavigationDelegate {
CarbonTabSwipeNavigation()
[AnyObject], delegate: self)
andTargetView: a.view) I had place this code but its not working what can i do for On Wed, May 18, 2016 at 1:39 AM, Ermal Kaleci notifications@github.com
|
create a UIView not UIViewController. you can do it from storyboard and create an IBOutlet |
It looks not possible to use CarbonTabSwipeNavigation in an already UIViewController incase if we want to have a banner, header or simply any other UIView above Tabs. Its because CarbonTabSwipeNavigation inherits UIViewController which I believe restricts itself to be used as a part of some UIViewController beside other controls of UI instead it is a full fledge UIViewController.
Is there a way to use CarbonTabSwipeNavigation inside as a control in UIViewController? Like this:
The text was updated successfully, but these errors were encountered: