Note that there are some explanatory texts on larger screens.

plurals
  1. POpresentModalViewController issues: Newbie needs help
    primarykey
    data
    text
    <p>I have a UIViewController (which sits inside a tabUIController). Within this UIViewController, I want to present a modelviewcontroller when a user clicks on a button. I cannot get this to work. With the code I have (see below) i get to the stage where i press the button but i get the strange error of "unable to read unknown load command 0x80000022". </p> <p>Any ideas? (for the BrowserUIViewController i havent added anything in there yet, but it shouldnt matter, with any controller i just want to get the syntax right).</p> <pre><code>@interface AboutDoronUIViewController : UIViewController &lt;UITableViewDelegate, UITableViewDataSource&gt; { NSDictionary *values; NSArray *keys; BrowserUIViewController *browser; AboutDoronUIViewController *about; } @property (retain, nonatomic) NSDictionary *values; @property (retain, nonatomic) NSArray *keys; @property (retain, nonatomic) BrowserUIViewController *browser; @property (retain, nonatomic) AboutDoronUIViewController *about; @end ... - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSInteger section = [indexPath section]; NSUInteger row = [indexPath row]; NSString *getSection = [keys objectAtIndex:section]; NSArray *valuesForSection = [values objectForKey: getSection]; NSString *selectedLink = [valuesForSection objectAtIndex:row]; NSString *urlAddress = @"http://www.google.com"; //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; //URL Requst Object NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; //unused for now BrowserUIViewController *temp = [[BrowserUIViewController alloc] initWithNibName:@"BrowserUIViewController" bundle:nil]; self.browser = temp; [self presentModalViewController:browser animated:YES]; [urlAddress release]; [valuesForSection release]; [selectedLink release]; [getSection release]; [temp release]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload