0

i have created a framework from an existing codebase by referring this link "How to create a framework in iOS". I was able to create a framework successfully. Now, i have imported this framework into a new project and tried to call the methods in it. But, there is no response from any of these methods. Even the NSLog statements in these methods are also not getting printed. There are no erros either. this is very frustrating. Can anyone help me out as to where i am going worng...

#import <framework/FIClassA.h>----> this is frame work import

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions


self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
self.viewController = [[[TrailOneViewController alloc] initWithNibName:@"TrailOneViewController" bundle:nil] autorelease];
FIClassA *objA = [[FIClassA alloc] init];  //----> creating a object for a class in the framework
[objA methodA];   //----> calling a method in the framework

self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
A for Alpha
  • 2,904
  • 8
  • 42
  • 76

1 Answers1

0

i have imported this framework into a new project

Have you also added an #import for it in the particular class where you are using the methods you're calling?

Duncan Babbage
  • 19,972
  • 4
  • 56
  • 93