iphone

Native app for iPhone!

Hi All, I want to develop a native universal app(i.e for iPhone and iPad) for my orgaization.I want to include some of the essential features of the organiztion website into my native app.For obvious reasons i cant store this huge data into iPhone itself.so data will be fetched from the server but application would be a native app.so ar...

For iPhone OS 4.0 "dateFromString" method of NSDateFormatter returns nil.

Hi I am using following code & its working perfectly fine in iPhone OS 3.2 +(NSDate *)NSDateFromString:(NSString *)dateString { NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateStyle:NSDateFormatterShortStyle]; [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; [dateFormatte...

NSInternalInconsistencyException Error: Advice on ADD/REMOVE UITableViewCells, with specific CONDITION

Hi all, I understand that NSInternalInconsistencyException for UITableView happens after rows are added/deleted, the value numberOfRowsInSection does not tally. For my app design, during the editing mode: -Each section has its MAX limit of rows to be added. -Show "ADD ROW" at last row of section ONLY IF the limit has not met. -...

how to reload the UIpicker view data

Hello, I want to reload the data in the UIpicker view. actaully i have 2 picker on the view. and i want to fill the data in the second picker according to the previous selected picker value. is it possible? please suggest how i do this. ...

plist file is not updating..

I am updating a plist file using an iphone app but when i check that plist file in XCode it contains the same data. plist file in XCode is different from that of iphone? ...

About the texture switch in OpenGLES

When the texture is switched, why is the speed slow? Code - 1  glBindTexture(GL_TEXTURE_2D,texId01);  glDrawArray(glDrawArrays(GL_TRIANGLES, 0, 4);  glBindTexture(GL_TEXTURE_2D,texId02);  glDrawArray(glDrawArrays(GL_TRIANGLES, 0, 4); Code - 2  glBindTexture(GL_TEXTURE_2D,texId01);  glDrawArray(GL_TRIANGLES, 0, 4);  glDrawArr...

iPhone Thread problem

Hello, I have an app which got 4 TableViewController which each make an instance of an RSSParser and have a function called commonInit which starts the parsing. Inititally i called the commonInit from the default init function in the TableViewController and it works fine but in case of no internet access I would get 4 alert windows whic...

problem while deploying app in to ipod

hi friends, This problem is showing after i upgraded my ipod OS to 4.0 . But still i use iPhone SDK 3.1.3 When i try to deploy app build in iPhone SDK 3.1.3 to my iPod its showing me the error Error Starting Executable No provisioned iPhone OS device is connected. How can i get rid of this problem. should i downgrade my iPod OS to 3....

iPhone Enterprise app push updates to users?

If my company is a member of the Enterprise program where we can distribute apps internally for any number of users is there a good way to handle app updates? Everything I see on installing such apps is saying I have to send the .app and a profile to the end users for them to add to iTunes and then sync their device to install. Is there ...

distributing an iPad app during development?

So I got my app up and running on my iPad so I can test it before submitting it for provisioning in the app store. Sweet. Is it possible for me to get the app installed on other iPad's for testing during this phase of development? I have a client who will be using the app and I'd like them to be able to run through it while we iron ou...

Core Text: counting pages in background thread

Let's say I'm writing text viewer for the iPhone using Core Text. Every time user changes base font size I need to count how many pages (fixed size CGRects) are needed to display the whole NSAttributedString with given font sizes. And I would like to do this in separate NSOperation, so that user does not experience unnecessary UI lags....

XCode 3.2.3 organizer console doen't show logs from the device

I thought I saw an answer to this somewhere on the web but now I can't find it. When I plug my device in and run my app the log output doesn't show in the organizer console. Is there some other place to look for log output? I thought I could find it in the Console app but I'm having trouble. ...

Using iPhone audio files in own app - copy the audio file - is that possible?

I like the user to pick an audio file from the available list of audio and copy it into my own app. In the retrieved items of userMediaItemCollection in the Apple sample code "AddMusic" there is the property: MPMediaItemPropertyAssetURL. But I cant get to it, since I get the error "MPMediaItemPropertyAssetURL undeclared" - although I imp...

Objective-c formatting style causes an error in a switch-case

I'm getting an error in my switch statement with some multi-line Objective-c code: - (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error { // Notifies users about errors associated with the interface switc...

Multiple Requests with httpClient (appcelerator)

With appcelerator, I am attempting to send a picture with the twitpic demo, I have created 2 text fields and when they are filled in I want to upload the image and those fields to twitpic. The problem with the app, is after I do it successfully the first time, (without closing the app) the second time doesn't send. I need to somehow r...

UIScrollView scrolling not proper

Hello, I have a UIViewController subclass which has the view property set to a UIScrollView subclass (say ProfileScrollView). Now, I have overridden drawRect: method, in which I draw a lot of text and place UIButtons as subview in between texts. Depending on the text data, I set contentSize of the scrollView in this drawRect: method. Now...

Adding subview then releasing it: "modifying view that is being finalized"

I've got a UIButton called tagButton and a UIScrollView called tagsView. Inside my -(void)renderTags method, I do [[self.tagsView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; ...to clear the decks, then I walk through a pair of arrays called allTags and activeTags, alternately creating "lit" and "unlit" butto...

how to load image in background in UITableCell in iphone application

Hi I have develop an RSS application. in My table cell I am displaying images which i retrive from imge link in RSS feed and Title. Images are loaded successfully but the problem is that it hang my application. as there any way to load image in background. my current code is. int blogEntryIndex1 = [indexPath indexAtPosition: [indexPat...

null productIdentifier AND invalidproductIdentifier (In-App Purchase)

I have one product registered and cleared for sale in iTunes Connect. I request the CORRECT product id but the SKProductsResponse object returns null productIdentifier and null invalidproductIdentifier. What could be the problem? TOTAL PRODUCTS REGISTERED: 1 PRODUCT IDs MATCH: YES CLEARED FOR PURCHASE: YES SDK: iOS4.0 DEVICE OS: iOS4....

Consequence of importing appDelegate in a class and the same class in appDelegate

Hi all, I want to know the consequence of importing appDelegate in a class and the same class in appDelegate. Because, I'm doing this in my application successfully, but it's recommended that it should not be done. I couldn't find the answer despite a lot of searching. Thanks in advance. ...