So i\'m trying to pass data between two views (first view is tableViewController,when cell is pressed data is send to second view,second view got imageView, when data is sen
First Check theAppDataObject
is null or not.
If it is null then:
Write AppDataObject* theDataObject;
in your inteface and declare a property as strong
If theDelegate.theAppDataObject
is returning null , allocate that object first.
If it is not null then:
Change this line theAppDataObject.imageString = tempImageString;
to
theAppDataObject.imageString = [tempImageString retain];
If you are using ARC set the property of imageString
to strong
.
or Check with this
theAppDataObject.imageString = [[NSString alloc] initWthString:tempImageString];