uibutton

UIButton image property iPhone

Hi I was wondering if there was any way that I could change the size of the image and also its position within the UIButton? Thanks ...

transparent button

Hi at all, there is a way for put button transparent not with alpha?? I'm explain, I have a background image on my view, there is also some button with image background, if the image as a transparent part I see on button a white color inside the view background image. There is a possibility to exploit the image transparency? kikko088 ...

Target a UIButton by it's title

I am setting the title of a UIButton dynamically using [btn setTitle:x forState:UIControlStateNormal]. Is it possible to say for instance, change the background image of that button, but reference it by its title name? ...

How to get UIButtons title in an array to be shown each one by one in a timed sequence

In my program, I have a series of UIButtons in an array that I would like its title to be shown each one at a time one by one in a timed sequence after executing a function that has a while loop. I have an IBAction attached to the buttons and when touched will call another function that will do some operation and in the end, will chang...

objective-c disable drag in UIButton

I want to disable UIButton dragging in Xcode, is there anyway to do that? any solution would help Thanks ...

How to send a value to the function when clicking on the ui button

Hi all, NSString *name = @"John"; I need to pass the above variable value, when clicking on the uibutton. Currently I created the uibutton like below: sendButton = [[UIButton alloc] initWithFrame:CGRectMake(170, 350, 90, 30)]; [sendButton setTitle:@"YES!" forState:UIControlStateNormal]; [sendButton addTarget:self action:@selector(s...

[btn1 addsubview:view1], now btn1 cant handle touches

Hi there, im trying to add a view as a button's subview like this: btn1 is a UIButton [self.btn1 addSubview:view1]; After adding it, the button wont give any touch related events, the button works fine without this subview added. Any thoughts? ...