You can't pass any arguments to methods that are connected to UIButtons (the most you can do is pass an int, using button.tag = 42). So my suggestion to you is to connect your UIButton to a method like this,
- (IBAction)goButton:(id)sender {
// Here you get the level of recursion that the user entered in the UITextField.
NSString *recursionLevel = self.recuersionLevelOutlet.text;
// And do whatever you need to do with it.
...
}
To connect the UIButton to the view, if you're unsure, do the following.
1) Open the .xib file of the screen.
2) Open the .m file by holdingoption and clicking it's name (this will open it in the side pane).
3) While holding control, click on the UIButton and drag to an empty space between @interface YourViewController () and @end in you .m file.