-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to play a sound based on which button is pressed using AVAudioPlayer.
(This is not a soundboard or fart app.)
I have linked all buttons using this code in the header file:
@interface appViewController : UIViewController <AVAudioPlayerDelegate> {
AVAudioPlayer *player;
UIButton…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey guys! I create a UIButton instance(named "button") with a image use [UIButton setImage:forState:] function, the button.frame is larger than the image's size.
Now I want to scale this button's image smaller. I had tried to change button.imageView.frame, button.imageView.bounds and button.imageView…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What I am trying to do: I want three buttons side-by-side in a tableviewcell just like in Contacts app.
What I've done: I have a custom tableviewcell with three uibuttons in it. I've set the background color of the tableviewcell to be transparent.
What I can't figure out: The tableviewcell border…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to draw a normal rounded rect UIButton, but without the border. Ideally I'd like to be able to change some setting on the UIButton to disable the border.
My problem is that if I change the button type to "custom", I don't get the nice blue selection gradient (which I want to keep), and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey There,
I'm having a little trouble using the tag property to access a UIButton
UIButton *randomButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect ]retain];
randomButton.frame = CGRectMake(205, 145, 90, 22); // size and position of button
[randomButton setTitle:@"Random"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I've been trying to figure out how to draw a shadow for an UIView that was added inside a UIView with addSubview.
I searched online and read the docs, but the Apple docs simply draw new shapes as shown below. I want to use the Core Graphics to add a shadow to the UIView, but am unsure how to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a uiview class and i want to switch to other uiview class but without using addsubview
is there any other way to do that except the one (addSubView)
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have a UIViewController that I launch from a Xib file who's contain a UIView (0,0,320,480) and this UIView contain another UIView (0,0,320,250).
Inside my ViewController, I need to reload the second UIView bu clicking on a button, how to do that?
Thanks,
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Basically what I want to do is copy the already rendered content (a PDF drawn into the UIView's graphics context using CGContextDrawPDFPage()) onto a similar UIView, without having to re render the PDF. The idea is, that I'd then be able to perform an animated transform on the UIView and later re…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button?
For instance, at the moment I have a UIView (A) with an object at the top and an object at the bottom of the screen…
>>> More