uchicago-mobi / 2015-Winter-Forum

8 stars 1 forks source link

Thread 1: EXC_BAD_ACCESS #142

Closed thomkel closed 9 years ago

thomkel commented 9 years ago

I'm having issues passing the dictionary item from my MasterViewController to DetailViewController via the prepare for segue method.

Here is my code:

MasterVC:

DetailVC:

-(void)setLinkItem:(NSDictionary *)newLinkItem{ if(self.linkItem != newLinkItem){ self.linkItem = newLinkItem; [self configureView]; NSLog(@"Reset link item"); } }

Each time I try to call setLinkItem, I see "Thread 1: EXC_BAD_ACCESS...." and it looks like a null item is getting passed even though the item I am passing (link) is not null.

Any idea what I'm missing here?