I'm back! I took a long break from iOS development because of school and actually this is the last day of my spring break so I'll be taking another short break after this.
Anyways, I have a
view covering the
bottom quarter of a
view, that I want to
slide up. I've tried using touchesMoved and getting the location and updating the center of the covering view but touchesMoved, touchesBegan and all that seem not to work. So now I put a UIControl over the view for when its covering the bottom quarter. My plan is that when you
TouchDragInside the UIControl, it
updates the
center of the
covering view and the
UIControl. After the
UIControl's center passes self.view.center, the
covering view goes all the way to the
top (completely covering) and the
UIControl is
removed.
Code:
- (IBAction)bottomViewControlTouchDragInside:(id)sender {
//How do I get the location of the touch when a action is received from a button?
}