I'm trying to find the center of a view with:
but I get this error:
activeSuperview is declared as an id (I didn't know what else to declare it as,) becuase it'll change based on which UITextField is currently selected.
Code:
currentY = activeSuperview.center.y;
but I get this error:
error: request for member 'center' in something not a structure or union.
activeSuperview is declared as an id (I didn't know what else to declare it as,) becuase it'll change based on which UITextField is currently selected.
Code:
activeSuperview = [textField superview];