Or simply (if you know OAnswer1
is a string)
[Answer1 setTitle:OAnswer1 forState:UIControlStateNormal];
and you really shouldn’t have capitalized variable names…
More Related Contents:
- how to remove " in json string?
- Can’t set cell title’s text
- Constants in Objective-C
- Converting NSString to NSDate (and back again)
- How do I URL encode a string
- Objective-C and Swift URL encoding
- Remove HTML Tags from an NSString on the iPhone
- How do I convert an NSString value to NSData?
- String replacement in Objective-C
- Converting escaped UTF8 characters back to their original form
- How do I test if a string is empty in Objective-C?
- Converting between NSData and base64 strings
- Objective-C 101 (retain vs assign) NSString
- How can I convert my device token (NSData) into an NSString?
- How do I get word wrap information with the new iOS 7 APIs?
- What is difference between URLWithString and fileURLWithPath of NSURL?
- Xcode Objective-C testing tools and debugging methods [closed]
- Understanding ibeacon distancing
- NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why?
- How to increase the height of navigation bar in Xcode?
- How to use NSCache
- how to remove HTML Tags from NSString in iphone?
- WhatsApp image sharing iOS [closed]
- UICollectionView – didDeselectItemAtIndexPath not called if cell is selected
- Swift doesn’t convert Objective-C NSError** to throws
- Class is implemented in both. One of the two will be used
- Trouble with AutoLayout on UITableViewCell
- application:didReceiveRemoteNotification:fetchCompletionHandler Not Called
- How to manage cookies with UIWebView in Swift
- How do I do weak linking in Swift?