DAAppsViewController icon indicating copy to clipboard operation
DAAppsViewController copied to clipboard

Adding this to a project in storyboard

Open dunc77 opened this issue 11 years ago • 3 comments

Quick question on this, can anybody tell me how to add this to my project? i want it on page 5 in Storyboard mode but this code only loads up on the main page and the project does not include an xib or storyboard as they are not needed

Any idea anyone?

dunc77 avatar Jul 04 '13 18:07 dunc77

Have you read the README? It explains how to integrate it very easily!

docash59 avatar Jul 31 '14 16:07 docash59

Sorry but there is nothing on README telling how to integrate this with a storyboard app in terms of DAAppsViewController being an item on a storyboard, that is what the op seems to be asking.

KatkayApps avatar Feb 14 '16 20:02 KatkayApps

This is what I've done:

  1. Imported the project
  2. Ensured that the view (e.g.Settings/About screen) in Storyboard is embedded in a UINavigationController.
  3. Added this to my .m:
DAAppsViewController *appsViewController = [[DAAppsViewController alloc] init];
[appsViewController loadAppsWithArtistId:@"ArtistId" completionBlock:nil];
[self.navigationController pushViewController:appsViewController animated:YES];

Thats about it. No need to add a new ViewController. Just link up to an IBAction and your done.

docash59 avatar Feb 15 '16 13:02 docash59