iphone

iPhone Tap Counter

I'm trying to get a UI Button to interact with a UI Label through Xcode and Interface Builder. What should I change in this code to do so? (I have everything linked up in Interface Builder already. The app just crashes when I press the button.) @synthesize window; @synthesize label; @synthesize anotherLabel; @synthesize myButton; ...

locating image files from hard disk to UIImageView

I have downloaded the image from ftp server ,the downloaded images are stored in hard disk , i want to locate those images files in my ImageView . ...

Iphone Cocos2D - SpriteSheet Cocos2D (so confused...)

I have gotten 0 response from the Cocos2D board so thought Id try here. Ok. Im ripping out my hair over this. I did a complete re-haul of my code last night in hopes of fixing some iphone4 framerate issues. I created sprites in advance instead of doing some of the creation during the update methods. I only add them to the spritesheet no...

How do I improve the accuracy of this pedometer algorithm?

I've tried several ways of measuring the steps a user makes with an iPhone by reading the accelerometer, but none have been very accurate. The most accurate implementation I've used is the following: float xx = acceleration.x; float yy = acceleration.y; float zz = acceleration.z; float dot = (mOldAccX * xx) + (mOldAccY * yy) + (...

Pattern for Updating UITableView on Sync?

I'm working on a feed reader iOS project. Feed entries are listed in a UITableView in reverse chronological order. On launch, they're loaded from a database into an array. When the app syncs to feeds, it creates a new array for the new order of things, and then to update the table, compares the new array to the old array to determine wh...

dictionaryWithContentsOfFile returning nil from my property list file

Hi there, I'm learning how to use plist files for storing data in my iPhone app. I've been reading a bunch of the questions about plist and dictionaryWithContentsOfFile on this site, but can't see what I'm doing wrong. The following line returns nil ("The dictionary is null" to the console). NSLog(@"The dictionary is %@",[NSDictionar...

Can I re-purpose a UITabBar button as a normal button?

What I'd like to do is have 3 or 4 buttons on a UITabBar. All except one of these behave as normal UTabBar buttons - ie they switch between different views. But I'd like one of the tab bar buttons to perform a function - refresh the app's data - without switching views… Is this at all possible? ...

Change View With animation

For change view with animation iphone sdk support "Flip Left" and "Flip Right" How can i implement "Flip up" and "Flip Down" ? ...

how to stop audio playing if user leaves the view

I have an audio file that plays when a user clicks on one view. my problem is that if they move to another view the audio continues to play. I would like the audio to stop if the user is no longer on that view. is this done in the viewDidUnload method? here's the code that plays the audio after a 15sec delay: -(void)startPlaying { ...

iPhone Application Loader app store submission errors help

Hey there, I am trying to submit my app to the app store using the application loader. I get to the stage where I select the .app to send and it fails with these two errors, could any one help me with how to fix these? Info.plist does not contain a CFBundleResourceSpecification Not sure what the above means... on iTunes connect the b...

Reload UITableView viewWillAppear

Hey guys, I'm in a Tab Bar Application and I have a tableView that's loaded from an array, and it works fine. (I don't have a TableViewController though). The problem I'm having is that I want to reload the table view every time the user clicks on the tab icon. So I put [tableView reloadData] in viewWillAppear, but I get an error messag...

Return object crashing iPhone

Hi there, Im fairly new to the whole world of iPhone dev so forgive me if this is very easy. I have an object Card that holds 6 Question objects on it. when I say [card getQuestion:@"Art"] I am currently returning a Question object like so - (Question*) getQuestion: (NSString*) questionType { Question *q = [questions objectForKe...

What's the most efficient process for parsing XML and building a Core Data database?

Let's say I'm getting I'm receiving XML files from some web service, like these two examples.. <news> <item id="123" created="10/09/10" expires="07/07/10" modified="10/09/10"> <title>Xiabo receives Nobel></title> <content>Lorem ipsum lorem ipsum</content> </item> </news> . <products> <item id="1" category="shoes"> <name>Nike Air</nam...

Taking In-App purchases to mimic my iPhone app on Android

Hi, I have an iphone application which is a reporting application, by this i mean, a user searches for a postcode, and gets information for free on that postcode. Then for a cost (about £1-£3) they can purchase a complete report. I purchase the report data legitimatly per request, and put a markup on the price and deliver it through th...

Programmatically Scale selected UIView components on Zoom

Hi, I have a UIScrollView that nests a UIImage and several symbols that are placed on the image programatically. When the user zooms I need to scale these symbols up to have them keep the same size, whilst the underlying image is zoomed. I placed the symbols and the image in a UIView to ensure the symbol position is alidned to image ...

AudioStreamer Changing the mp3 file in the background

hi .. I have an Iphone application wich uses the audiostreamer to play some set of mp3 fiels one after the another.I have updated this application to IOS4 then I have done with all the changes required [plist remote controll,playback],but when the i keep the application in the background and when the current mp3 file completes playing th...

What is the best way to animate many images?

I can not animate many images with animationImages and startAnimating as it uses too much memory and crashes. What is the best way to animate 100 images in a portion of my iPhone screen (not full screen)? Is there an example? ...

How to use NSOperation and NSOperationQueue

Hi friends , I made an app which plays the song on clicking on the image of artist.(see image attached). Each artist image is implemented on button and on clicking this button, a function is being called which first downloads and then plays the song. I passed this method(function) in a thread but problem is that every time ...

viewDidUnload - stopping a method when the view is changed

I'm looking to stop an audio file from playing when the view is changed. I'm using a tabController and I would like the audio that's playing to stop when the user moves to a different view. I'm not sure where and how I would do this. in the viewDidUnload perhaps? here's the method I'm using to play the audio file: -(void)startPlaying...

How to apply a black and white effect on a iphone movie

I need to make an app that turns a movie (shot from the iphone camera) to black and white. Does the iphone have any frameworks that I could use to apply effects to recorded videos? ...