iphone

Array of NSStrings from filenames within a folder?

I'm trying to create an array of NSStrings of the contents of a folder that I've dragged into my project... but when I count the items in the array afterwards, it's always comes back with 0; So, my folder in my project looks like this -Cards -Colors Blue.png Green.png Orange.png Yellow.png Purple.png Bla...

Is local Notification feature available in iphone os below 4.0?

Hello Is local Notification feature available in iphone OS below 4.0?In OS below 4.0 how can i send notification from the app even the app is not running.I don't want to use push notification(notification from any server side).Please guide me. Thanks. ...

Springboard-like scrolling/view switching with snapping on iOS

Is there a way in cocoa touch to implement view switching behavior like the one in iPhone's springboard? I mean horizontal scrolling with 'snap to view' animation (views are switched only after certain 'scrolling' threshold has been reached) ...

NSFetchedResultsController: should I always check fetchedObjects==nil before calling -performFetch?

I'm using NSFetchedResultsController for my table view. I call -performFetch inside my controller's -viewDidLoad method. Sometimes my controller gets unloaded and then re-loaded, resulting in another call to -viewDidLoad and -performFetch. I found that this was causing an error: "NSFetchedResultsController error: section '(null)' not fo...

Can anybody give me the code of titleforheaderinsection method's code to make my table devided in two section ...

hiiiii, i am a beginner for iphone and i want to make so much experience with iphone sdk codding... Can anybody give me the code of titleforheaderinsection method's code to make my table devided in two section ... ...

Cocoa Touch - Comparing Images

How can I compare an image to another one? Thanks! ...

Setting "Home Screen" icon name for mobile Safari

By default, when "bookmarking" a website as an icon (by choosing to Add to Home Screen from within Safari's "+" menu), the icon name defaults to the page's <title>, truncated to 12 characters. In much the same way that apple-touch-icon lets you specify your own iconified representation of the page, is there a way for the webpage to spec...

How to check if UIImage is valid - iPhone

Hi, Is there a way I can check if there is valid Image in my UIImage object? Thanks ...

2D-iPhone-Game with side-scrolling & platforms like Super Mario with Cocos2D?

I want to create a game where the player only can run and jump on platforms. I think Cocos2D would be great for that but i haven't found any tutorials for cocos2d and side-scrolling. Where I have to start? ...

Application update after change executable name

Hello. We have met the problem. We have application with executable file name 'foo' version 1.0 and it was approved in app store our new developer somewhy renamed in target settings changed product name to 'bar' and submitted it to apple store as update to foo. version of bar is 1.1 after bar was approved and replaced foo as new applicat...

Animating UIView and its sub layers

I have a subclassed UIView that is comprised of several layers (mostly CAShapeLayers with a few CATextLayers). The problem I have is that if I animate resizing the UIView using an animation block (beginAnimations, commitAnimations) and relayout the sublayers in the overridden layoutSubviews, then the layers are not animated with the UIVi...

iOS Universal app iPad launch images not being used

I'm following the iOS Programming guide on "Providing Launch Images for Different Orientations" and can't seem to get my iPad-specific launch images to work. If I'm reading the docs right, "Default~ipad.png" should be used as the launch image if I launch my app in the iPad simulator, but instead it's using my "Default.png". If I tell...

How do I format an iPhone's app email as a 'form' with input fields ?

Hi, Can somebody explain to me how I can present an email to the iPhone-App-User that has input fields that the User should fill in before sending ?? Simple Example: The user should input their name.... Blockquote NSString *emailBody = @"\ <html><head>\ </head><body>\ <form>First name:<input type="text" name="firstname"...

UILocalNotification Or EventKIt

Hello All, Is there a way to trigger some kind of task on the base of date event .My problem is that i want to play sound (alarm) on specific date it does work fine by using UILocalNotification, but it plays s short sound , and i want to play an infinite sound instead of .How can i achieve this goal .. waiting for your early response. Th...

"Best" Way to Implement a UISegmentedControl underneath a UINavigationBar

Hi all, I am working on an app that uses a navigation controller to control the views. In one part of my app, I want to have a UIView with a UISegmentedControl just underneath the navigation that will "filter" the UITableView. Essentially: ======================================== | < Back) Title Goes Here | <- navigation...

iphone - freeing a CFDictionary

I am not familiar with C. I have a method created by someone else that has a CFDicionary that was created like this touchBeginPoints = CFDictionaryCreateMutable(NULL, 0, NULL, NULL); point = (CGPoint *)malloc(sizeof(CGPoint)); CFDictionarySetValue(touchBeginPoints, touch, point); I would like to dealloc the dictionary now. As far as ...

AVAudioPlayer doesn't work after 248 times

I am developing an application that involves clicking a button repeatedly, and I am giving an audio feedback for this click, a click wave file. it works fine, but I have a problem, after exactly 248 times, the sound is not played any more, the app doesn't crash however. and I get the following error: Error Domain=NSOSStatusErrorDomain ...

UILocalNotification Or EventKIt

Hello , All I have read the material regarding UILocalNotification , but there is no way i find to play a infinite loop sound when the notification is fired , it does play for a short time with showing an alert, but i want to achieve the goal of playing a continuos sound by providing the option of snooze and quite . I have go...

Core Data - Optional attributes and performance

Per the Core Data Programming Guide: You can specify that an attribute is optional—that is, it is not required to have a value. In general, however, you are discouraged from doing so—especially for numeric values (typically you can get better results using a mandatory attribute with a default value—in the model—of 0). T...

Extracting array from NSMutableData in http response

Hi, using iphone sdk 4.0. The callback for an http request gives data as an NSData object -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { // Append the data received to our data [theData appendData:data]; } In my php script on the server i am returning an array as follows var_dump($array). ...