I am using Xcode 4.3.1. I have created the UI using Storyboard which has many View Controllers.
Issue
In my app i am using ShakeGesture. While shaking i am doing some operations, its working fine. But, when shaking get stopped i need to pass some values to another View controller to display it. I have seen many post it says how to pass value when button clicked,but no one related with my problem.
It would be great if you solve my issue
My question is
How to pass values from one View to another View controller after shaking get stopped?
I am looking for any examples or tutorials. Much appreciated.
Exact function for the above question
I am having an button in First View Controller
When the button triggered it will popup pickerview with some datas. When the user selects it the picker value replaces the button value.
Then Shaking happens when it stopped i have to pass the data to other view controller.
Code
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (event.subtype == UIEventSubtypeMotionShake)
{
// I need to pass data here. Thats i am confusing
}
}
This question was asked before but i couldn't get the solution thats why i am asking again. Apologise for that. Thanks for your help guys