Hey All,
Im having an issue with my program. The following function gets information needed for an HTTPRequest, however, it does not grab the information.
- (NSDictionary*)getSelNewsItem {
NSIndexPath *ip = [postsTable indexPathForSelectedRow];
if(ip == nil) return nil;
else {
return [news objectAtIndex:ip.row];
}
The line that is not working is:
NSIndexPath *ip = [postsTable indexPathForSelectedRow];
for some reason when it goes to grab that it comes back nil, however in the same .m file i use postsTable for other functions and the data comes back fine. Please help!!
Thanks,
Daniel
Im having an issue with my program. The following function gets information needed for an HTTPRequest, however, it does not grab the information.
- (NSDictionary*)getSelNewsItem {
NSIndexPath *ip = [postsTable indexPathForSelectedRow];
if(ip == nil) return nil;
else {
return [news objectAtIndex:ip.row];
}
The line that is not working is:
NSIndexPath *ip = [postsTable indexPathForSelectedRow];
for some reason when it goes to grab that it comes back nil, however in the same .m file i use postsTable for other functions and the data comes back fine. Please help!!
Thanks,
Daniel