iphone

Writing Playlists to iTunes in iOS SDK

The Apple documentation on the MPMediaPlaylist class is pre-iOS4, so it definitively states that you cannot write new playlists to iTunes on the phone with the SDK. However, with the iOS4 update, users can create and save new playlists on the phone. Is this functionality offered to developers as well? If so, could someone point me to app...

iPhone iAd -- not getting callbacks to didFailToReceiveAdWithError

I am testing an iAd app on an iPod touch. My iPod is connected to the internet. In all my testing, I have only received one callback to didFailToReceiveAdWithError. Here is the relevant code: #ifdef mAppHasAds - (void)bannerViewDidLoadAd:(ADBannerView *)banner { NSLog (@"Triangle ad"); bannerView.hidden = NO; } - (void)bann...

tap and remove 2 image for iphone

when i tap a button 2 images(image 1 and image 2(having ) are pop up now when i tap again i want to remove all but right now only button (i.e image2 in front) is removed but not image 1 and i can remove image1 only when image 2 is removed how to delete all in 2nd tap and then pop agian on 3rd tap CODE - (void)touchesBegan:(NSSet *)touc...

iPhone : Unable to copy from MainBundle to NSDocumentDirectory

Hi, I am trying to copy a couple of image files from my MainBundle/SampleImages folder to the application NSDocumentDirectory/Library folder, but am unable to do so. I have checked that the images are in .app/Mainbundle/SampleImages directory and I have also checked that the Library folder is being created in the NSDocumentsDirectory, ...

How to commit this file to svn?

I'm on a Mac and would like to commit a file to svn but get an error that the parent folder is lock. Description : Directory '/Developer/Projects/myappproject/trunk/targetfolder/myapp.app/.svn' containing working copy admin area is missing Status : 155005 File : subversion/libsvn_wc/lock.c, 947 I run a cleanup from trunk: svn c...

Property changes but I can't figure out who's doing it.

I have a UIViewController (called AdjustViewController) that presents another UIViewController (called SourcePickerViewController) with a UIPickerView modally. I generate instances of the AdjustViewController and they in turn make a SourcePickerViewController. I make an NSDictionary and assign it and an integer to the AdjustViewControl...

Updates not saving to DB and properties not firing faults

Two hopefully minor questions regarding CoreData that I've been unable to find answers to: 1) I have a faulted object. Accessing an attribute as a property is not firing the fault, accessing the same property via KVC IS firing the fault. Any idea why? i.e. object.title returns nil and object is still faulted, but [object valueForKey:@"...

Encrypt request from iPhone to web app?

We have the following: iPhone native app, with login form that posts to: A php script on remote web server which checks against MySQL user table. For security, would it be best practice to use some two-way encryption to encrypt every request? including this initial login? otherwise the user and pass will simple be passed to the web a...

Adding NSMutableArray to NSMutableDictionary and the arrays are null?

I've got a simple object "post" that has two NSMutableArrays as properties. One is for "image" objects and the other is for "video" objects. At some point in the lifecycle of "post", I ask it for a dictionary representation of itself. NSMutableDictionary *postDict = [post getDictionary]; -(NSMutableDictionary *)getDictionary{ NS...

iPhone Font Size Issue (Does the iPhone arbitrarily increase sizes?)

My iPhone (4) renders 1.8em the same way it renders 1.2em while 0.9em is waaaay smaller. Any idea what would cause this? The sizes work perfectly in all desktop browsers - FF, Chrome, IE, Safari. The iPhone makes my app looks weird because the sizes are not honored. Help? ...

how to add 4 buttons in UInav bar for iphone

i want to add 4 buttons in UINAV bar how to do that should i make them in UINAVBAR controller or navItem or UIBarbutton??? any code will be appreciated Thanks ...

Can I implement something similar to iOS "Folders"?

Hi! I am going to make something that very visually similar to iOS4 folders but it's not folders at all ))) For example, I have 4 labels on screen - see sketch. Screen splits, if user click on label. Other lebels going down and we can see some text between splited views. If user click once more - view back to "normal" state as before....

Help in creating multi Page PDF in iPad

Hi all, I am developing an application in which i have to create multi page PDF and email that pdf. The content which is to be converted to pdf contains text as well as some images. I have seen some posts regarding this but could not glean too much from it.Will be greatful if any one can guide in this. Thanx, Regards, tek3 ...

Retun an array of .html filenames files in app bundle?

Assume there are unknown number of .html files include in the .app bundle, how can I get a list of filenames which matches *.html wildcard? ...

how to say to Xcode that this file is stored on <myApp>/documents (iPhone)

hi guys, i'm new as an iphone developer, as a hobby i'm writting a small game (just for fun). i would like to store the default configuration inside a xml file. I have the xml file, I know about how to parse the xml document, but.. what i do not know, and that's why i'm here is: is there a way to say to Xcode: imagine this (xml) file ...

iPhone & iPod Touch iAd UIImageView memory Leak

Running my app on device using leaks tells me that iAd is leaking a UIImageView (namely the ad). Does anyone know what this is about/how to fix it?![alt text][1] screenshot of my instruments panel: http://www.freeimagehosting.net/uploads/30446483e5.jpg ...

Can more than one app be combined into one overall app?

Rather than create a new app, I would like to hire a programmer to bridge multiple existing apps into one overall app. For example, a Fishing app that incorporated 3 already published apps from 3 different developers: Map, Compass, and Tide apps. Of course the venture and profits would be shared amongst all developers...but I would lik...

Best way to handle offline storage in iPhone app?

Hi All, In my app in iPhone getting data from server through web services. When no internet connection is there on my device, it will get the data from localstorage. Suggest the best way to handle offline storage in iPhone app? Sri ...

iPhone app codeSigning only fails for "device + release"

I can compile and install (on the iphone) several of the apps I've written. I have 1 generic "*" certificate for developing any app. (It expires in 6 days) I have individual "com.site.appName" for distributing each app. But there's this 1 app, that just started giving: warning: Application failed codesign verification. The signat...

How do I make a custom UITableViewCell curved?

Like the Settings app, or a UITableCellStyleValue1? I'm basically trying to replicate the tableviews in Settings.app, where you have a label and a textfield. I'm stuck trying to make the cells curved. How can I go about doing this? Thanks! ...