farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

UIApplicationWillEnterForegroundNotification undeclared, version 3.0 iOS #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Trying to get the example supplied in the download, to work for ZestADZ.
2.  I've removed files that are not required for ZestADZ.
3.  Tried to compile project.

For the iPhone simular 3.0, in SimpleViewController.m, this section of code 
will not compile:

  UIDevice *device = [UIDevice currentDevice];
  if ([device respondsToSelector:@selector(isMultitaskingSupported)] &&
      [device isMultitaskingSupported]) {
    [[NSNotificationCenter defaultCenter]
                      addObserver:self
                         selector:@selector(enterForeground:)
                             name:UIApplicationWillEnterForegroundNotification
                           object:nil];

The line name:UIApplicationWillEnterForegroundNotification gives an error 
message "UIApplicationWillEnterForegroundNotification undeclared".

One thing I noticed is that the "if" condition is related to multitasking and 
version 3.0 iOS is not a multitasking OS (correct me if I'm wrong).

I've checked all the files I had previously removed and none of then contain 
the text UIApplicationWillEnterForegroundNotification.

Is the latest version of Adwhirl really compatible with old versions of iOS?

What is the expected output? What do you see instead?
I just want the example project to work with ZestADZ and then I can progress 
with my project.

What version of the product are you using? On what operating system?
I'm using the latest version of Adwhirl, I only just downloaded it a couple of 
days ago.

Please provide any additional information below.

Original issue reported on code.google.com by Matthew....@gmail.com on 8 Jan 2011 at 4:19

GoogleCodeExporter commented 9 years ago
I'd recommend building against iOS 5 at this point.

Original comment by wesgood...@google.com on 30 Nov 2011 at 9:01