briancollins / BCTabBarController

a Tweetie-style tab bar for the iPhone
MIT License
568 stars 95 forks source link

Crash BCTabbarcontroller in my project ? #21

Open rushabh0999 opened 11 years ago

rushabh0999 commented 11 years ago

Hi, i m using bctabbarcontroller in my project i am follw the below link step to integerate

http://stackoverflow.com/questions/18375243/use-bctabbarcontroller-in-iphone-project

i Integaret successfully but when i click on second tab then it crash

Here is My Code :-1:

AppDelegate .h

import <UIKit/UIKit.h>

@class BCTabBarController;

@interface AppDelegate : UIResponder

{

} @property (nonatomic, retain) BCTabBarController tabBarController; @property (strong, nonatomic) UIWindow window;

@property (strong, nonatomic) UINavigationController *navigationController;

@end

AppDeleagte .m

main.m

import <UIKit/UIKit.h>

import "AppDelegate.h"

int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }

Crash :-1:

[__NSArrayM indexOfObject:]: message sent to deallocated

Thanks in Advance :)