iboutlet Questions
4
The sample code linked here works great and allows a UIScrollView to display images with paging and preview of the images before and after the current image:
http://blog.proculo.de/archives/180-...
Lipstick asked 2/8, 2011 at 2:18
6
Solved
I wonder if its OK to connect multiple items to the same IBOutlet?
In my tableView I have setup two cells and given them a uniqe identifier.
But I have connected the label in each cell to the same ...
Your asked 11/8, 2016 at 12:56
19
Solved
I got an error on Xcode saying that there was no information about the view controller.
Could not insert new outlet connection: Could not find any information for the class named
Why is ...
Semipostal asked 28/4, 2015 at 15:42
3
Solved
I know that our IBOutlets should be private, but for example if I have IBOutlets in TableViewCell, how should I access them from another ViewController? Here is the example why I'm asking this kind...
5
Solved
I want to make an array with a bunch of UIImageViews I have in Interface Builder. Instead of having 20 or 30
IBOutlet UIImageView *img1;
and linking them all that way, and then putting them into...
Divebomb asked 5/12, 2010 at 0:16
7
Solved
I'm trying to replicate the Stanford Matchismo game from "Developing ios7 apps for iphone and ipad" in iTunesU in Swift.
On page 77 of the 3rd lecture slides, it shows using an IBOutletCollection ...
Moving asked 5/6, 2014 at 5:43
2
Solved
I have 30 buttons in one view in Interface Builder. Each has a different tag between 100001 and 100030. I've found it easy to use the same action for each button, passing along the tag for each one...
Judicious asked 19/12, 2011 at 16:23
6
Solved
Can't connect delegate property of CustomView declared as @IBOutlet toViewController in Interface Builder – simply can't establish a connection.
Here's the code
class CustomView: UIView {
@IBOut...
Viccora asked 3/10, 2014 at 13:52
4
Solved
I am attempting to learn Apple's Swift. I was recently trying to build a GUI app, but I have a question:
How do I interact with GUI elements of my app? For instance, I used interface builder to ma...
3
Solved
I'm a newbie with the Storyboard and so I have some difficulties...
I have created a TableViewController and I would like to customize the Cell Prototype. In the Cell Prototype I have added severa...
Slovak asked 16/4, 2012 at 14:43
3
Solved
I am unable to set a referencing outlet for a text field I have created. I am trying to do this via Ctrl-Drag. Can anyone advise? I have set the delegate as the View Controller. In general, I only ...
Quicken asked 18/11, 2014 at 22:19
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
4
Solved
I'm creating a camera app in swift and I have a UIButton. I want to propose two options: when user single taps the button - it takes photo and when user holds his finger on a button - it records th...
Catholic asked 2/11, 2016 at 0:27
4
I connected a IBOutlet and IBAction to my button variable from Interface Builder to my View Controller. How do I add an action method to the button in Swift?
This code doesn't seem to work.
@IBOut...
4
I'm having a problem, which I can't figure out for the life of me. I've searched the internet, trying to understand Swifts's EXC_BAD_ACCESS, but nothing seemed to help.
The following code is quite...
Asthenopia asked 12/5, 2015 at 13:40
3
Solved
I've created a UIViewController that we can call MyViewController1. When I call MyViewController1, all my IBOutlet are nil in viewDidLoad (and in the rest of the code too).
When I create this con...
Firebox asked 12/2, 2014 at 8:49
2
Solved
I want to assign NSLocalizedString(key, comment) to a UILabel from storyboard without creating an outlet for it.
Dupe asked 29/6, 2016 at 8:1
5
Solved
I am working on an iPhone app and am getting (null) references to IBOutlet fields in my controller. I have a UIViewController subclass that is set as the File's Owner in my XIB. I have a set of UI ...
Germann asked 11/8, 2009 at 1:9
3
Solved
I am new to Xcode, working through Swift, so I'm not sure if what I am decribing is actually a bug.
When using interface builder and the assistant editor, I can create lables, buttons etc, and cre...
Flex asked 2/7, 2014 at 4:49
3
Solved
I may be doing something really stupid, but I don't seem to be able to use Interface Builder to connect IBOutlet variables to custom views, but only in Swift.
I've created a class called MyView, w...
2
According to the NSObject UIKit Additions Reference, outlet variables should be set by the time awakeFromNib is called (emphasis all mine):
The nib-loading infrastructure sends an awakeFromNib mes...
Zygapophysis asked 1/7, 2013 at 8:53
7
I'm attempting to use the UITapGestureRecognizer object that can be found in Interface Builder. I've dragged a single "UITapGestureRecognizer" from the object library to a single view xib. I then c...
Bolometer asked 12/12, 2011 at 22:10
2
I have created a class "DeletableImageView" (.swift + .xib) which uses the protocol I defined as "DeletableImageViewDelegate" through a property I called delegate.
Example for sake of clarity:
De...
1
When running iOS 8, the IBOutlets of my nib based view controllers are nil, but when running iOS 9, they work fine. Any ideas why this might be happening?
My app supports iOS 8+, and I'm running X...
Authorized asked 4/1, 2016 at 11:17
4
I'm trying to switch views after an animation as seen:
[UIView beginAnimations: @"Fade Out" context:nil];
[UIView setAnimationDelay:1.0];
[UIView setAnimationDuration:0.25];
splash.alpha = 0.0;
[U...
Pia asked 29/1, 2013 at 5:54
© 2022 - 2024 — McMap. All rights reserved.