Tagged Questions
0
votes
3answers
102 views
How to connect multiple buttons in a storyboard to a single action?
I'm currently using Xcode 4.6 and I'm simply wondering how to select multiple buttons across different UIViews, but under a single view controller. CMD clicking doesn't seem to work. I need this ...
0
votes
2answers
53 views
Existing custom UIButtons distort when adding a new one
My iPad app has a row of custom UIButtons and I want to add another row underneath, roughly in the position of the Round Rect Button shown:
However, when I try to resize the new button to match the ...
0
votes
0answers
47 views
UIButton occasionally partially/not visible
I have a view built with Interface Builder which has a grid of buttons (like so):
X X
X X
The bottom pair are the ones causing issues. Nothing happens programatically to the buttons at all (they ...
0
votes
2answers
133 views
UIButton fails to activate 'touch up inside' on a first gen iPad, works on second gen
Question
I have a .xib with a UIButton. That UIButton has a connection via Touch Up Inside to a method, - (IBAction)play:(id)sender, in the File's Owner.
When I run on a first-gen iPad the ...
0
votes
2answers
127 views
Creating IBOutlet to custom UIButton subclass from separate Phone and Pad storyboards?
I'm trying to drag connections from some UIButtons on my Storyboard to a subclass of UIButton (called AGPiece in my header file. I have two storyboards for iPhone and iPad.
I was able to drag the ...
0
votes
1answer
86 views
UIButton background image not crisp
I'm setting the background image of a UIButton in Interface Builder.
For some reason this image doesn't render well and I end up with something not crisp at all.
The button is 65x65 and the image is ...
0
votes
1answer
133 views
UIButton Background Image Does not Fill Button Frame
I have a button where I must mimic the style of a UISegmentedControl. I have the image I want to use as the button's background image, but it does not fill the button's rectangle.
I would like ...
0
votes
1answer
100 views
Button background shown on iOS 5/5.1 instead of my background?
So in my app I am creating, when it is run in the simulator I see the white background images, instead of my transparent background I set. This is with an XIB and not a Storyboard for what it matters.
...
0
votes
2answers
147 views
How to use a custom UIButton with Interface Builder?
I have a subclass UIButton that loads a Nib:
@implementation BlaButtonVC
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
NSArray *subViews = ...
1
vote
2answers
243 views
How to add a custom UIButton to Interface Builder Object Library?
Is that possible to add a subclassed UIButton to XCode 4.5 Interface Builder Object Library, but as Custom Object?
Here you can find the small sample project:
...
0
votes
0answers
53 views
Why is my UIButton resizing itself on launch?
This one is really frustrating. Been going at it for hours and can't understand why it's doing it. I have three buttons, all of the same dimensions. This is what they look like in Interface Builder:
...
0
votes
2answers
495 views
UIButton inside UIView doesn't respond to touch events
I've put a UIButton inside a custom UIView and the button is not receiving any touch events (it doesn't get into the highlighted state, so my problem is not about being unable to wire up a touch ...
2
votes
3answers
397 views
How can I addSubview to UIButton in Interface Builder
Like I said, I add a UIButton in Interface Builder, I want add a UILabel、UIImageView as the button's subviews, but I can't add any object on it in IB. IS anybody know how to do this? Thank you very ...
0
votes
0answers
34 views
Create a button from a NIB
I have some very simple button code that looks like this:
UIButton *cellCenter = [UIButton buttonWithType:UIButtonTypeCustom];
cellCenter.frame = CGRectMake(90.0, 0.0, 90.0, 100.0);
...
3
votes
1answer
97 views
Efficient way to customize UIButtons
What is the best way to customize the look of UIButtons in an app? I am working on an app where we programatically update UIButtons to look the way we want. Most of the buttons are created in ...