iphone-sdk-3.0

How to build for iPhone 3.0 SDK?

Hi, I'm pretty new to iPhone. My dev env is setup, XCode has just two profiles: iPhone device 3.1.2 (base sdk) and iphone simulator 3.1.2, either one with release and debug. I fear I will run into problems now, if I ad hoc deploy to < 3.1.2 phys devices. How can I build for 3.0 base sdk only? Kind regards PS: stackoverflow is a great s...

IPHONE: memory still allocated after releasing object???

Hi, I have a method for drawing an object offscreen to a file, using quartz. The last lines of this method are: CGRect LayerRect = CGRectMake(mX,mY, wLayer, hLayer); CGContextDrawImage(objectContext, LayerRect, objectProxy.image.CGImage); // 1 CGRect superRect = CGRectMake(vX, vY, w,h); CGContextDrawLayerInRect(context, superRect, ob...

I cannot get in app purchase test to work

I have had zero success with in app purchase. I have submitted the free app binary, and then rejected the binary. I have added the test product. I have approved the test product TAP001. I have followed the code examples to no avail. I do a SKProducts request using both "com.companyname.appid.TAP001" and just "TAP001" Regardless, I get ...

Crop UIImage in oval shape

Hi Guys, How to crop UIImage on oval shape? Thanks in advance, Ghufran ...

How to get rid of keyboard when user taps background (iPhone)

I have a custom UIScrollView which contains UITableView and UITextView. When user clicks on text field, keyboard pops up and it also disappears when user presses Return key on keyboard. Question: How to get rid of keyboard when user taps on UITableView? No matter what I try, I just can't catch any touch events... Using iPhone 3.0 SDK si...

iPhone SDK: I need a Subview initialized when loading, hidden when done

My Setup: In my iPhone app, I have a loading View (which is an UIImageView itself) and two subviews on the loading View, an UIIndicatorView and an UILabel. To view it, I call the [self.view addSubview:loadingView] method, and to hide it i use [loadingView removeFromSuperView]. In my app to refresh my data i have the method -(void)refre...

IPHONE: searching for a value in a sub dictionary inside a Dictionary

I have a dictionary of dictionaries and I have retrieved from a plist. Suppose the high hierarchy dictionary is COUNTRIES and each sub dictionary is a COUNTRY. Each COUNTRY sub dictionary has keys like name, currency, population, flag, etc. After retrieving the dictionary and its subs to a variable as in NSMutableDictionary * countri...

UIProgressBar with streaming and Playing progress

Hai all, in my audio streaming application i like to show the progress of downloading and playing, when i tried it with MPMoviePlayerController, it shows both progress in the same progress bar, is there any way to implement (or use) the applies default progress bar in our application ? thanks in advance ...

What is the time format for APNS?

I want to show alert on a specific time on iphone using push notification.I have gmt +530 timezone in my local app.Suppose current time is 16:04:08 Gmt +530 and i want notification after one hour so currently I am converting it into UTC format and storing this time and alert message on server database. i want to know will i get the notif...

how to combine user voice and curently playing audio in iphone sdk?

Hello all, I want to create a karaoke like application.First tell me is it possible or not. How do i combine two sounds? suppose i am playing instrumental and want to record my voice so that i can create a new song using my voice. ...

UISearchBar in a UITableView

I'm trying to mimic the behaviour of a table view like one in the iPod app for Artists - it's a sectioned table view with a section index on the right and with a search bar at the top, but initially hidden when view shown. I am using sdk 3.1.2 and IB, so simply dragged a UISearchDisplayController in to my NIB - it does wire everything u...

problems getting HTTPRiot working

I've got an iphone app where I'm trying to use HTTPRiot to make some API calls to a web app. Problem is I can't see that none of the HTTPRiot delegate methods are being called. I've got a log in all the delegate methods, and I'm also looking at the webserver log. I see that the URL is being hit. //API.h #import <Foundation/Foundation...

iPhone media player framework : play multiple movie files seamlessly

I am using the media player framework's MPMoviePlayerController to play local (on device) m4v files. Depending on user's selection, I want to be able to play multiple movies one after the other seamlessly. To do this, I queue up the movies in an array and in my observer method that is called on the MPMoviePlayerPlaybackDidFinishNotifica...

IPHONE: releasing cached data

Hi, Here is a fast one: is there any method for releasing any cached data an application may be using and freeing memory? I mean data that is cached automatically by the iPhone when you do a Page Curl or other effect in a view, when you load a picture, etc. The allocations I did I can, obviously release but what about the allocation...

Core Data (SQLite/iPhone) - design considerations?

Hi, all! I’m in the process of designing an iPhone app, using Core Data for data persistence (with local SQLite store[s]). Before I get too far into the implementation, I’m hoping for some qualitative advice on some basic design questions relating to Core Data. Here’s the scenario: The app handles data on dozens (possibly hundreds) ...

How to find if mapkit failes to acquire user location?

In my app I'm using map kit.The map kit is working fine but sometimes it fails to acquire user location,so i thought i could show en error message but when i applied the error message it prompting again and again looking very annoying.so i want to ask that when map kit starts to get current user location and if it fails how do i show an ...

IPHONE: How do I extract the RGB channels of a UIIMage?

I have an UIImage with alpha channel. How do I extract the RGB channels of a UIIMage, each one to be an independent UIImage with alpha? thanks in advance. ...

IPHONE: I have this line on my instruments... should I worry?

I have this line (see picture) in my instruments while analyzing objects allocation. The line says 1.17 Gbytes of overall bytes??? what does it means? Should I worry? ...

compile error on Xcode

How can i fix it Ld build/Debug-iphonesimulator/iRadio.app/iRadio normal i386 cd /Users/ragopor/Desktop/iRadio setenv MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin...

How can I make an iPhone reel like in FlickFishing?

Hi, I'm new in iPhone development, and I want to make a custom Reel/Spinner like the Reel in many iPhone fishing games, and I want capture the touch events, such as if the reel is moved to the right/left. Where should I start? Thank You! ...