I have a class that plays a repeating background music loop with an AVAudioPlayer, and on specific occasion, plays a full-screen video with its own sound track using MPMoviePlayerController. In order to to have only one track at a time, I stop the background music before launching the video:
-(void)startVideo{
[backgroundMusic stop]...
Hi All,
Just wondering what is the best way to display a barcode given a string on the iPhone. I have looked over stackoverflow and google and a few people have different ways each requiring a decent amount of work (I think) and also slightly old so I wanted to get it right first time.
One way I've read is using a custom font that you ...
I am using MKMapView on my application. i need to show current location on simulator.
is it possible. to show current location on simulator.
...
I want to make a simple 2D game where the user has to navigate a ball through a maze (using the accelerometer of course). I used a simple view to make use of the accelerometer and move a ball on the screen. Now how do I go about building the maze? Would I have to use cocos2d or something similar? How do I make the ball stop or rebound wh...
Hello everyone
I hope to play MPMediaItemcollection using MPMusicPlayerController
musicPlayer = [MPMusicPlayerController applicationMusicPlayer];
I have got the handler of MPMediaItem *mediaItem
How can I add MPMediaItem to MPMediaItemCollection?
I try addObject but no function.
Thanks
...
In Javascript/jQuery, how can I detect if the client device has a mouse?
I've got a site that slides up a little info panel when the user hovers their mouse over an item. I'm using jQuery.hoverIntent to detect the hover, but this obviously doesn't work on touchscreen devices like iPhone/iPad/Android. So on those devices I'd like to r...
Hi,
I am creating sample hello world application. The code is below. How can i removed the
warning at c[cell setText:@"Hello World"]; in the code below as it deprecated.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
[cell setText:@"Hello World"];
...
I currently have a UIView subclass that acts as my header view for my UITableViewController. All of the subviews vary in size depending on data retrieved for a particular item.
layoutSubViews is getting called for the UIView before I can determine the size of each label. This causes a problem because I set the size of the view within th...
hi all,
I am making an iPad application. In that for moving image from left to right and vice-a-versa. I am using following code for making the animation
animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:AnimationDuration];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATrans...
Hi,
I need to send a file to webdav server from iphone app, it's include the function of create folder, update file, delete file. so i want a webdav client framework for iphone or static library, which could used at my iphone app.
I have found some code, such as ConnectionKit, it hasn't been updated in years, and i have not passed the...
Hi All,
In a couple of weeks, working on and off, I've managed to create the app that I had envisaged. It has the functions I want, and the performance is not too bad. However, if I look at my code it clearly has been put together without proper MVC consideration, and I know it's gonna bite me in the butt if I try scale the app or reuse...
I am new to iPhone apps and objective c and I cannot figure out what is wrong with my method the general idea is that it goes to a plist which contain latitudes and longitudes, takes the data stored in the array that the user enters in a text field, and then outputs a pin at that location. Any suggestions would be greatly appreciated. I ...
how can i add .a file in my xcode
...
Hi.
I have four UIImageViews lined up in a row and I want to be able to move the images from left to right. Is there a way to bound the movement to the x-axis (along the image centers) i.e. moving them only left and right? Similar to moving the icons around the screens on an iPhone.
I've added a UIPanGestureRecognizer to each of the ...
I have a xcode project with multiple targets (for logic and app unit tests).
I am also using core data with the mogenerator plugin to autogenerate source files from the .xcdatamodel.
The generate files are not being generated with any of the "target" flags selected. This causes build errors.
Is anyone aware of a solution to this. I...
In my application, I am using our own server for posting xml's and to parse them. My doubt is does apple allow to use it OR will they demand to take some space in the apple server and then to do all the things?
...
I am a bit new to Objective C and was wondering if there is a better way to count words in a string.
ie:
NSString *str = @"this is a string";
// return should be 4 words ..
The way I now how to do it is by breaking the string into an array of words space (' ') character and count the array.
Any advise will be appreciated! Thanks!!...
i have an app which require transaction of money from client to agent's account...
but no idea how to do this.....
please help/.....
...
Hello
I am having a alertview and i want to change the size by cgrectmake property but it does not happen .
It just take the by default size.
i tried following code.
- (void)viewDidLoad {
[super viewDidLoad];
UIAlertView* find = [[[UIAlertView alloc] init]initWithFrame:CGRectMake(0,0,300,200)];
[find setDelegate:self];
[find setTitle...
<day>
<date>October 19</date>
<job>
<value>xyz</value>
<time>5:30</time>
</job>
<job>
<value>abc</value>
<time>6:30</time>
</job>
</day>
<day>
<date>October 20</date>
<job>
<value>xyz</value>
<time>5:30</time>
...