Calculate Frame Size
Hi,
Is there a way to calculate the size of a frame? I am looking for a general solution, so that I can learn how to deal with this in future, but specifically, I want my PickerView to span the entire screen and have the components fill the entire view.
The only problem is that I have to take the size of the frame into consideration. By estimation, it seems as though the frame (in this instance) is around 30 pixels, but is there a way to determine the frame size of a UIFrameWork programmatically?
What I am trying to do is make the component width the (screen_width / num_of_components - frame_width / num_of_components). Is there a better way to do this, or is there a way to calculate frame_width (of the framework, which happens to be UIPickerView)?
Riley
|