Note that there are some explanatory texts on larger screens.

plurals
  1. PONSDictionary to NSArray, will not display properly?
    primarykey
    data
    text
    <p>I have a signature page, were the user can sign their name. It needs to then be saved to NSDictionary, but i want to call a List of the keys to be text in a TableView for each row or cell. so:</p> <p>"viewImage = saved as object to key:Random Number"</p> <p>That parts somewhat easy, the hard part is when i call it on the other Page to the TableView. It Exits the App with Error"SIGABRT". Now all my Delegates are in place and working...i believe. now heres some example code:</p> <p>FirstPage.m</p> <pre><code>UIImagePNGRepresentation(viewImage); NSMutableArray *innerArray = [[NSMutableArray array]init]; [innerArray addObject:viewImage]; [SignatureSave setObject:innerArray forKey:@"5599"]; </code></pre> <p>simple Enough, but doesnt give me an error.</p> <p>SecondPage.m</p> <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { FirstPage *appShare = (FirstPage *)[[UIApplication sharedApplication] delegate]; NSArray *dataDuplicate = [[NSArray alloc]init ]; dataDuplicate = [appShare.SignatureSave allKeysForObject:@"innerArray"]; static NSString *CellIdentifier = @"Cell"; NSLog(@"%@",dataDuplicate); UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if(cell == nil) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero]autorelease]; } if (dataDuplicate != nil) { cell.textLabel.text = [dataDuplicate objectAtIndex:indexPath.row]; } else { UIAlertView *CellAlert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Error Loading content, Try Again Later." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [CellAlert show]; [CellAlert release]; } return cell; } @end </code></pre> <p>Now, How do i get the <code>viewImage</code> to save to the NSDictionary, to be able to call it on the <code>SecondPage</code> and display the name of the objects in the TableVIew?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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