How would I test the type of a primitive data type in Objective-C?
- (IBAction)coor1X: (id)sender {
if(typeof(<value of sender>) == double) {
...
}
}
The sender is a UITextField in the Interface Builder. I need the input to be a double. Iv'e tried typeof() but it doesn't work the way I intended. I have also looked to find how to get the value of the text field, I'm having trouble finding that also.
Thanks!