I'm wondering if there is a way to pass a constant like UITableViewStylePlain into NSDictionary.
I am passing value types using NSValue like so:
CGRect myRec = CGRectMake(0,0,320,568);
NSDictionary *myDic = @{@"val":[NSValue valueWithCGRect:myRec]};
CGRect yourRec = [[myDic valueForKey:@"val"] CGRectValue];
My question is how do I do this for a constant like UITableViewStylePlain? Something like this:
NSDictionary *myDic = @{@"style":[NSValue value:UITableViewStylePlain withObjCType:enum]};
I realize enum is not an ObjectiveC type... :(