Code:
[self.menuList addObject:[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"PropertySubtype2fTitle", @""),
kTitleKey,
publishNoOfRoomsViewController,
kViewControllerKey, nil]];
menuList is a NSMutableArray.
I want to read the PropertySubtype2fTitle localized string later in the code, like in:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
To fetch an entry from a NSDictionary, you can use
. To fetch an entry from a NSArray / NSMutableArray, you can use
. In combination and applied to your example that should be:
whereas index would be an unsigned integer (NSUInteger).