Tagged Questions
2
votes
4answers
32 views
Determine which UIButton fired event in Objective C
I have a handful of UIButtons that when pressed fire the method, (IBAction)buttonPressed:(id)sender. Right now I have a document label set for each (btnPlay, btnStop, btnPause), but I don't believe I ...
0
votes
0answers
15 views
iOS masterView of UISplitViewController appears on UIButton click
I'm using a splitViewController for my app. My masterView appears when we swipe on the screen and i want to make it appear when we click on a UIButton. I tried but can't make it. My detailView doesn't ...
1
vote
1answer
52 views
Triggering a UIButton's method when user drags finger into button's area?
I want to have a button that triggers its method under the following conditions:
When the user taps the button
When the user presses the button and drags his/her finger out of the button's area
When ...
0
votes
1answer
23 views
Looking for an alternative to touchesMoved to detect any touch event within a defined area?
I have a virtual keyboard in my app with 6 keys, and the whole thing is just an image implemented with UIImageView. I determined the exact x and y coordinates that correspond to the image of each ...
0
votes
0answers
12 views
Odd numbered calls to touchesBegan:withEvent: only
Background
I have a subclass of UIButton called TestButton in which touchesBegan:withEvent: and touchesEnded:withEvent: are overridden to log the number of taps on the button. Code below.
Problem
...
1
vote
0answers
19 views
How to change default UIButton padding when using auto-layout
When using auto-layout in iOS 6, a UIButton's intrinsic content size appears to include about 10px of padding around the button text. Is there any way to control this padding value? For example, I'd ...
0
votes
1answer
32 views
Custom font not showing diaeresis in capital letters
I have a subclass of UIButton that uses a custom font. The problem is that capital letters don't show diaeresis.
Below there are images of the same button sample with and without the custom font. I ...
0
votes
0answers
42 views
Uibuttons keep freezing when clicked
Im trying to gather the information on how many time the button is clicked and it freezes when clicked. This is just after an animation has occurred.
- (IBAction)btnGreen:(id)sender {
...
-1
votes
1answer
15 views
Layout of UIBUTTON on IOS
I am creating an application for Ipad. I have trouble aligning UIBUTTONS properly.
the button are always out of ipad screen.
sample image with problem >> http://i.imgur.com/ypVybOM.png
sample code ...
0
votes
2answers
57 views
UILabel doesn't dim with button
I have a programmatically generated UIButton with a label property and a background image. When tapped the background image becomes grey but the text does not. How do I make the label also indicate ...
0
votes
2answers
31 views
Add an image inside UIButton as an accesory
I have the following UIButton I want to add an Image inside to the far right. Like an accessoryView
I am already using backgroundImage and I want to avoid combining the 2 images into 1.
Is it ...
-2
votes
0answers
29 views
Button is not clicking in landscape mode [closed]
I have one button with background image on view. I am setting frame for view as well as for button in .xib. That button is clicking in portrait mode but not in landscape.
Using iOS 6.
Could anyone ...
-2
votes
0answers
23 views
Setting custom UIButton gradient background and drop shadow in iOS [closed]
I've created a gradient image with 1 pixel of width to set as a background for a UIButton, as it seems to be the recommendation in iOS HIG section "Tips for Creating Resizable Images" (iOS Human ...
0
votes
2answers
65 views
iOS - Casting UIView to UIButton/other views
I will be creating UIButton and other views programmatically. The buttons will be created inside custom class call ButtonBuilder. This builder class will be the subclass of BaseBuilder class. The ...
0
votes
2answers
47 views
UIButton image not changing
I have 4 UIButtons that I want to flash a lighter colour image for one second in a random sequence. So obviously I want to change the buttons images programatically. As you can see in the XCode ...
0
votes
2answers
33 views
UIButton Image size
I have 2 UIButtons. I set the background images to 2 different pngs. The pngs have different width. I looks like this:
The button size is set to the images.size.width and height.
I would like ...
1
vote
0answers
30 views
iOS: Color-changing circle button
I'm trying to make a button that will show/hide a color-selection slider. That's the easy part.
What I am not sure how to do is to make the button be a circle with an outline (say black) and the fill ...
1
vote
5answers
90 views
calling the ibaction methode programatically is not changing the background of the button?
I had an application in which i am adding some dynamic number of buttons to a scrollview. I had set a normal background and selected background for the UIButton. For some reasons i need to call the ...
-1
votes
1answer
56 views
Using UISwipeGestureRecognizer to interact with UIButton [closed]
I have a UIButton. By using UISwipeGestureRecognizer, i would like to interact with that button. I have four buttons, using a swipe gesture, I would like to interact with each separately. It's like ...
-2
votes
0answers
26 views
Value of button should be displayed on textfield [closed]
suppose we have 5 textfields and a button .if we click a button then value of that button should be displayed on 1st textfield and in a mean while the button value should be incremented and when ...
0
votes
2answers
58 views
How to keep selection on radio buttons after clicking previous button
For my Quiz app, i am creating 4 custom radio buttons for 4 answers by setting active and inactive images . When i select the button the state changing to active but when i press previous button the ...
0
votes
1answer
21 views
how to stop a button from overruling a drag gesture
I have an image that can be dragged on the screen along the y axis and it works brilliantly, but when when I place a button on top of the image which tracks the image (moves with the image, so it's ...
0
votes
3answers
25 views
How to get a button's current image using imageForState?
I found a property called imageForState in xcode but am having trouble getting it to do what I want. When a button is pressed, I want to execute a block of code depending on the button's image.
- ...
0
votes
1answer
37 views
Get triggered custom UIButton on UITableView and avoid tapping on the table row
I've a UITableView with a custom UIButton.
I want to know how can I know which UIButton tapped and then pass data to void function.
My code is:
- (UITableViewCell *)tableView:(UITableView ...
0
votes
4answers
24 views
UIButtonBarItem looks wrong
I think this is going to be a stupid question, but I can't seem to find the answer. I have a few simple lines of code to put a button in the navigation bar:
UIBarButtonItem ...
0
votes
0answers
21 views
Adjust the font size to fit for several UIButton's so that they all have the same font size
I have several UIButton's together, and I want to adjust the font size so that it fits. However, each button should use the same font size so that they look the same. In other words, what I would like ...
0
votes
2answers
30 views
About modifying contents of NSMutableArray
I have a NSMutableArray, called buttonContainer that contains UIButtons. The thing is I want to change the CGRectmake() of every button with a new value, is there an easy way to do this?
I'm trying ...
0
votes
0answers
18 views
IOS UIView smooth Animation Curve like analog Camera App
I'm trying to achieve an animation that makes a button "jump up" when user touches up inside. I'd like to achieve that smooth easing like in the Analog Camera App A short video here. I tried many ...
1
vote
3answers
53 views
UIButton set image for state normal, hide that image in different states
[button setImage: [UIImage imageNamed:@"Back.png"] forState:UIControlStateNormal];
[button setTitle: @"Title" forState:UIControlStateSelected];
I would like the button to display the image in normal ...
0
votes
1answer
18 views
Trying to move a UIImageView within a UITableView in iOS
I have developed a simple UITableView that displays a list of items. On top of this UITableView, I have created a selection bar in the form of a UIImageView that moves to whichever row is selected by ...