Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

iOS Client

TheRealKerni edited this page Oct 10, 2010 · 12 revisions

Q: BWHockeyViewController modal view is not shown after choosing yes in the alert view
A: Make sure the rootViewController property of your UIWindow is assigned to your rootViewController. If you require 3.x compatibility, don’t do it in the Interface Builder but via code, e.g.:

  if ([window respondsToSelector:@selector(setRootViewController:)]) {
      [window setRootViewController:YourRootViewControllerClass];
  }

Q: How can I check at compile time, if the chosen Xcode configuration is not the AppStore configuration.
A: Open your build settings (Project or Target) and choose All Configurations, then search for Preprocessor Macros Not Used in Precompiled Headers and add a new value CONFIGURATION_$(CONFIGURATION). Now you can check in your code via #if !defined (CONFIGURATION_AppStore_Distribution) where the text "AppStore_Distribution* is the actual name of the configuration you are using for the AppStore build.

Clone this wiki locally