[Interest] How to get didFinishLaunchingWithOptions called in IOS delegate?
missdeer at gmail.com
Tue Dec 2 09:27:12 CET 2014
Set an environment QTDIR and add it to INCLUDEPATH.
On Tue, Dec 2, 2014 at 1:58 PM, 解晶 <xie_jing at cdv.com> wrote:
> I have a qt application for ios and try to
> get didFinishLaunchingWithOptions() called.
> I got it work by extending QIOSApplicationDelegate like the followings:
> #import ".../qtbase/src/plugins/platforms/ios/QIOSApplicationDelegate .h"
> @implementation QIOSApplicationDelegate
> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
> [application setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum];
> return YES;
> It really works but i have to import the absolute path of
> QIOSApplicationDelegate .h because i can't find the header file
> in qt include folder. It may cause compile failed on other computers and i
> have to change my code if the path changed.
> So is there a better way to call the didFinishLaunchingWithOptions in qt applications
> for ios?
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest