Questions tagged [ibaction]

IBAction is a type qualifier used by Interface Builder to synchronize with Xcode.It is available in iOS 2.0 and later. The tags [UIButton] should be used to ask about Apple's UIKit frameworks UIButton action. Use the related tags [ios] , [UIButton] and [IBAction] for issues specific to those platforms.

IBAction is a macro defined to denote methods that can be referred to in Interface Builder.

As indicated in Apple's documentation, it is defined as void:

#define IBAction void

Relevant Stack Overflow question: IBOutlet and IBAction

891 questions
-2
votes
1 answer

What is a action or IBAction method?

Possible Duplicate: IBOutlet and IBAction I'm relatively new to Objective C, but not with programming in which I have experience with both C and Python. I was wondering what an IBAction method is and what it can do, and how to incorporate it into…
objective_c_pro
  • 925
  • 2
  • 8
  • 9
-3
votes
1 answer

Kindly explain me about the nature of the error : Terminating app due to uncaught exception 'NSInvalidArgumentException'

I am creating my first iOS application in Xcode Version 11.4.1 (11E503a). I am using Swift 5.1 and Storyboard for User Interface construction. I am having five TextFields in a single view app. The user is supposed to input data in these fields, and…
Sayantan4796
  • 169
  • 1
  • 10
-3
votes
1 answer

Pass a variable value from an IBAction to an IBOutlet

OK, I am new to this and working slowly through a development course. But I realise if I could crack this one I would be a long way forwards. I make a post call to a PHP file on my server and return the JSON data. This works. and I can print the…
uberphoebe
  • 81
  • 2
  • 8
-3
votes
2 answers

How do I go to a next storyboard after an IBAction

When I use CTRL+Click on next view it don't use the IBAction but goes straight to the next view. How can I make the app use the IBAction first and then go to the next view. The IBAction add data to the database, in the next screen I want to add…
Jasper
  • 3
  • 3
-3
votes
3 answers

How to call PrepareForSegue inside IBAction?

What I want do is to pass data between view controllers once the login button is clicked, for this purpose I am using -prepareForSegue:sender:. The problem: I am not able to use uide in the method -prepareForSegue:sender: it says that uide is…
user3405229
  • 85
  • 4
  • 12
-4
votes
3 answers

How to use multiple UIAlertView inside one IBAction with different button?

Is it possible to show different alerts with different buttons in the same IBAction based on different conditions?? I have some code in IBAction: - (IBAction)btnRecommendationTapped:(id)sender { UIAlertView *alert = [[UIAlertView alloc]…
Richard
  • 125
  • 1
  • 9
1 2 3
59
60