-
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'
Hello,
Currently I am using iPhone SDK 3.1.2 for developing iPhone apps.
Apple has recently released iPhone SDK 3.2 beta and I want to try my hands with it.
But my problem is that I want to use both versions of SDKs, 3.1.2 since I am currently developing apps and uploading on app store, 3.2 beta…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
in the current project I have a number of folders, with subfolders, and these contain images: 01.png, 02.png.
Folder1/FolderA/f1.png
Folder1/FolderB/F1.png
When I compile the app, I looked inside the the .app and noticed that all the images are placed in the top level, with no sub-folders.…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a way to access raw data of iphone camera preview? I mean not the data of the picture that was shot already, but the preview, that shows before taking a shot?
TIA
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
in the current project I have a number of folders, with subfolders, and these contain images: 01.png, 02.png.
Folder1/FolderA/f1.png
Folder1/FolderB/F1.png
When I compile the app, I looked inside the the .app and noticed that all the images are placed in the top level, with no sub-folders.…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a class with an NSDictionary attribute. Inside this class I dispatch another thread to handle NSXMLParser handling. Inside my -didStartElement, I access the dictionary in the class (to compare an element found in the XML to one in the dictionary).
At this point I get undefined results. Using…
>>> More