I am fairly new to iOS development. 
I need to create a static library from a current app, which we want to provide to clients to integrate it in their own app. Now I don't know if Apple allows something like this or not. 

I manage to create the static library, but i don't know which files i need to put as public headers which not. Basically the simplest implementation of the library will be, the client will add a button which will lunch our app inside theirs. As i said i don't know if this is even possible, but from what i read so far, it should be possible, but i haven't been able to find any example or help in how to make it happen. 

here is the code from AppDelegate.m 

```
#import "AppDelegate.h"

#import "GlobalViewController.h"

@implementation AppDelegate

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

    [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
    [[UIApplication sharedApplication] registerForRemoteNotifications];
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    self.viewController = [[GlobalViewController alloc] initWithNibName:@"GlobalViewController" bundle:nil];

    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
    return YES;

}

```

Now the question is what should i put in the library.h and library.m?
And also how should i call the view controller inside the demo app, that utilizes the library?

Thanks everyone for the help.