ibaction Questions

4

Solved

I have a UIButton connected to an IBAction in Interface Builder. The Problem: The action firing and the de-highlight of the button both take a little bit to happen. The Facts: View structur...
Urrutia asked 10/5, 2012 at 9:3

9

Solved

I have a view hierarchy that looks something like this: UIView (A) UIView > UIImageView UIView > UIView (B) UIView > UIView (B) > Rounded Rect Button UIView > UIView (B) > UIImag...
Tevet asked 28/1, 2011 at 5:37

11

Solved

What is the purpose of using IBOutlets and IBActions in Xcode and Interface Builder? Does it make any difference if I don't use IBOutlets and IBActions? Swift: @IBOutlet weak var textField: UI...
Torchbearer asked 29/10, 2009 at 11:15

13

Solved

i want to animate the UICollectionViewCell when action is called. i have done UICollectionViewCell in Interface Builder, the UICollectionView also. Now i want to get the correct indexPath at my act...

3

Solved

I am creating an app that requires notifications. I created a settings page with a switch to toggle notifications for the application. I tried to link the switch to ViewController2 using an @IBActi...
Comines asked 1/8, 2018 at 15:40

15

Solved

So I have a button that is connected to a IBAction. When I press the button I want to hide the tab bar in my iOS app with a animation. This [self setTabBarHidden:hidden animated:NO]; or this [self....
Romish asked 5/1, 2014 at 15:15

4

I am doing another iOS application and I wonder if there are any naming conventions or good practices on how to name actions that I could follow. I am thinking of names on the functions that are in...
Colchester asked 28/8, 2011 at 15:57

3

In my program 2 functions (IBAction player.Move(UIButton) and autoMove()) are supposed to be called by turns till all of the fields (UIButtons) has been clicked. For this I've created a function pl...
Bunsen asked 9/12, 2014 at 13:1

2

Solved

I've encountered a problem where my button should remain "pressed down" while it shows popover called from it. Popover is selector for some filter and filter is shown on button itself. When I tap o...
Borborygmus asked 9/7, 2012 at 6:20

8

@IBAction func getNewPhotoAction(sender: AnyObject) { println("getNewPhotoAction") } override func viewDidLoad() { super.viewDidLoad() self.getNewPhotoAction(sender: AnyObject) // Error } I j...
Pistole asked 13/10, 2014 at 21:49

6

Solved

I have an IBAction connected to a button, and I wanted to know if there is any way to run that function even if the button is not being pressed. This is what I tried... Note: I am using swift for ...
Repository asked 1/5, 2015 at 12:19

2

Solved

I tried to search this out, but kinda stuck in this question. All guides about UI say, that all UI stuff should be on GCD main thread, but no one says about inner implementation of IBActions. So, ...
Joses asked 14/1, 2015 at 14:24

1

Solved

When creating an eventhandler from a UIButton from the Storyboard, Swift adds @IBAction before func. When adding an event programmatically to a UIButton to a func, Swift gives a error and says I ne...
Hereditary asked 10/3, 2018 at 14:9

6

Solved

I have an issue. My current location is displayed and centered in a map view however the map region doesn't get zoomed in to. I tried taking Rob's advice by taking span and region out of the didUpd...
Footer asked 2/3, 2013 at 17:34

2

I am creating a Swift project and I want to define a specific protocol that enforces other components to implement a animate method: protocol AnimatableBehavior { @IBAction func animate() } The...
Shimmery asked 11/4, 2015 at 9:45

2

Solved

I currently have a table with some dynamic rows. When I run the probject the rows display on the screen and even have a press animation but xcode won't let me wire up the table row as an IBAction t...
Ahmednagar asked 18/6, 2015 at 23:8

4

Solved

Xcode 8 drag and connect @IBAction incorrectly adds "WithSender" on connection inspector IB Therefore I have to rename the methods to something like @IBAction func tappedConfirmButtonWithSender...
Sing asked 22/9, 2016 at 18:41

10

Solved

I'm currently refactoring a couple of view controllers that share a few IBOutlets and IBAction methods. I moved the outlet declarations and the IBAction method into a superclass, cutting these out ...
Taxation asked 13/12, 2010 at 17:58

3

Solved

I have just discovered the Gesture Recognizers in IB and I would like to make use of them. I've tried out the Tap Gesture Recognizer however it doesn't seem to work. Here is what I've done... Dra...

2

Solved

- (BOOL)textFieldShouldReturn:(UITextField *)textField { [self checkRun:nil]; return YES; } I'm trying to complete the IBAction checkRun when the return key is pressed, by using the above code...
Blaseio asked 16/3, 2014 at 22:16

2

Solved

Say for instance I have an IBAction that is hooked up to a UIButton in interface builder. - (IBAction)functionToBeCalled:(id)sender { // do something here } With-in my code, say for instance...
Microanalysis asked 22/5, 2010 at 19:7

2

Solved

I have a custom UITableViewCell subclass which contains a few IBAction methods wired up from a nib. Under iOS 8 everything works as expected. If the user taps one of the buttons, the appropriate I...
Gerstein asked 21/9, 2015 at 21:58

2

Solved

I know the second button here shows the Assistant editor: And I know how to make an Outlet and Action by Control dragging from an object in the Interface Builder to the View Controller code. Ideal...
Intrauterine asked 12/9, 2015 at 3:38

3

Solved

I created an Xcode 4.5.2 project starting with the Single View Application for iPhone template. After adding a UIButton to MainStoryboard.storyboard, I'm able to control-drag from the button to Vie...
Hoffer asked 7/1, 2013 at 21:53

1

Solved

When connecting a button in Xcode as @IBAction func, we can choose between Arguments: Sender or None. When do we choose Sender and when None?
Stenopetalous asked 20/3, 2015 at 19:2

© 2022 - 2025 — McMap. All rights reserved.