title: Modal view with Web view makes an app crash in iOS7
body: <p>I have been developing in Objective-C for two months, so I am quite new to this language and iOS environment. I am updating to iOS7 an app that is working fine for iOS6.</p>
  
  <p>I am getting the next error when a modal view with a web view inside is presented, only in iOS7 and this is working in iOS6. There is a URL request inside but I cannot find what is causing the error.</p>
  
  <pre><code>'-[__NSMallocBlock__ absoluteURL]: unrecognized selector sent to instance 0x16e8b020'
  </code></pre>
  
  <p>This is the viewWillAppear method on the modal view controller:</p>
  
  <pre><code>- (void)viewWillAppear:(BOOL)animated
  {
      [super viewWillAppear:animated];
  
      if (!self.webView.request) {
          //THE NEXT LINE THROWS THE ERROR
          NSURLRequest *req = [[NSURLRequest alloc] initWithURL:self.initialURL];
          [self.webView loadRequest:req];
      }
  }
  </code></pre>
  
  <p>Maybe I am doing something silly but really now I do not know where to look at.</p>
  
  <p>If anyone has experienced something like that before, I will appreciate some help. Thanks in advance.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>@interface MyViewController ()
  @property (copy, nonatomic) NSURL *initialURL;
  @end
  
  @implementation MyViewController
  
  - (id)initWithURL:(NSURL *)initialURL
  {
      self = [super init];
      if (self) {
          _initialURL = initialURL;
  
          _webView = [[UIWebView alloc] init];
          _webView.backgroundColor = [UIColor clearColor];
          _webView.opaque = NO;
          _webView.delegate = self;
          [self.view addSubview:_webView];
  
          self.modalPresentationStyle = UIModalPresentationFormSheet;
          self.view.backgroundColor = [UIColor whiteColor];
      }
      return self;
  }
  </code></pre>
  
  <p>Method call:</p>
  
  <pre><code>self.modalWebViewController = [[[MyViewController alloc] initWithURL:url] autorelease];
  </code></pre>