I need a table cell's accessory type to be compatible with both iOS 7 and 6. I tried to test the availability of an accessory type using the usual address check, but the compiler is complaining
Cannot take the address of an rvalue of type 'NSInteger' (aka 'int')
self.accessoryType = (&UITableViewCellAccessoryDetailButton == nil)
? UITableViewCellAccessoryDetailDisclosureButton
: UITableViewCellAccessoryDetailButton;