iphone

Difference between viewDidAppear, viewDidLoad in iPhone?

Bottom line is, I've been working on an app, and it seems that if I place a UIAlert in viewDidLoad, it gets called twice (from a delegate method of UIImagePickerController). If I put it in viewDidAppear, it gets called once. I've looked through documentation but it just confuses me. Can someone explain it to me? Thank you. ...

AVassetExportSession kills my audio.

Hi all. when I start –exportAsynchronouslyWithCompletionHandler: method of AVassetExportSession my audio is stops playing. I am using AudioQueue and OpenAL they both needs to be restarted after beginning export session. Is There any trick to make them work without restarting audios? ...

Using alternate accessoryType in UITableViewCell

Hi All I basically want to show a UITableViewCellAccessoryDisclosureIndicator depending on certain situations, in this case, where a URL exists in my row data (which I reference via indexPath.row. I have the right code to figure that out (ie if an URL exists), but I am unsure where I should state this code in the "cellForRowAtIndexPath...

iphone, how to implement 'upgrde app ' with outh through AppStore ?

Hi, all I want 'upgrade feature' in my iPhone app, how to say, if user tap a 'upgrade' button, then the app will access online upgrade version server and download newest modules file, after that, the app can use the newest modules... I am not sure that whether cocoa can like C++ to call 'Load DLL', but I assume that should have some w...

UIWebview: open certain links in safari (not all)

Hi everyone.. I have a webpage in uiwebview.. On this page are a couple of http:// links. One of them I want to have it opened in safari. The rest can open in UIWebview. I used this code so far; - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationTyp...

Can I synchronize many records from sqlite database from iphone to mysql database on server.

Hi everyone, Currently I am developing an iPhone app with sqlite database, this database just has only one table with many records. And my server is using MySQL database. I would like to ask: Can I send many records from sqlite database to MySQL database to update the table in MySQL database. Because I think I can do update with just o...

iPhone 4 Camera Specifications - Field of View / Vertical-Horizontal Angle

Hi to all, Does someone know the field of view values for the new iPhone4 camera? I'm doing some AR app's, and I want to know the horizontal and vertical angle of the rear camera. Thanks! ...

Is UITextView enough for a simple writing app?

Hi, I'm trying to make a simple writing program, like Notes app for iPad, with a custom keyboard. From OmniGroup's text editor open sources, I learned that UITextInput is mainly required to develop great text editor capable of having several fonts and size in one editor. But it seemed tough to implement a lot of methods in UITextInput Pr...

Detect the current keyboard language / layout in IOS / iPhone using JavaScript, i.e.

Hi! I want to detect the language of the virtual keyboard of a user visiting my WebApp and set some stuff accordingly. I have found an Objective-C solution, but I need it in JavaScript. Thanks! ...

iPhone playing sounds while in the background

Hi, I have a small application which is much like a clock. It has been working great on IOS3, but now I am updating it to iOS4. What I want to do in iOS4 is to let it play a sound any giving time. For instance, if I set it to play at 4.00 PM I want it to play a sound, a sound from the application not from the OS. This works if the app i...

App Suddenly Closes

Fellow developers. My thanks to you all for your help and suggestions. My app SafetyKnight has been approved for sale by Apple and I have submitted an inApp Purchase version for approval. One last 'bug.' When first opening my app, it sometimes quits unexpectedly. Not often. But only rarely sometimes. Does the MKMap or maybe not str...

how to check how many file names start with certain chars?

Hi guys, I have an iphone app that saves some people's data on a single file. Each filename is represented by the user name plus an incremental number, say "tommy1", "tommy2",... , "tommy32", then "sarah1", "sarah2", and so on. Is it possible to count how many of them are "tommy"'s and how many are "sarah"'s from within the code ? thank...

iphone webview loads firsttime with white border on top

I've a four tabs TabBarController. The first tab is selected and loaded whenever the view is showing up. It's a view with a webview as subview. Now showing up the first time I found a white space between the NavigationBar and the beginning of the WebView. Clicking on the second tab and clicking back to the first the space disappears. (so...

Display NSArray values that are stored in an NSDictionary

I'm trying to store an NSArray object with a simple key (1,2,3 etc.) inside an NSDictionary. I'm pretty sure thats worked, but I'm not sure how to display the array data thats stored in there, I've got the following working (displaying a single array of data) The test app i'm working on is a simple dictionary. Definition is the class i'...

iPhone app crashing on [self.tableView endUpdates]

My table view shows a list of users. I'm having issues refreshing my table view after adding a user. I've tried different combinations of code and events and now the app is crashing on the endUpdates call. The app is modeled after the recipe app, so a user clicks the add button, and then a modal window appears asking for the users nam...

UITabBarItem Does Not Dim on First Disabled Load

I can easily enable and disable the TabBarItems in my App which have no values or content. Works like a charm. I do want to keep all Tabs in order to show that this feature or content will be available on other views throughout the App because this special view is dynamically filled with content over 30times. The TabBarController is sub...

UILocalNotification several soundName

Hi, I have a UILocalNotification in my app but I want to play several sounds after each other. I can't find that my app can solve this, due to that my app is in the background. So what I want to know is if one can play several sounds and repeat them until the user has pressed "cancel" och "view", or if there is a delegate in my app th...

Inactive button in UIAlert View

In my iphone-app, I have a "Share" button in my Navigation bar, that pops up a UIAlertView with the options "Twitter" and "Facebook". When a user has already sent something to Twitter, I don't want him to be able to sent it again. One way of preventing this, is to just remove the Twitter button from that Alert. This makes the Alert kind ...

How to add my swipe code to UISearchDisplayController's SearchResultsTableView

Hello All, I have implemented the Tweetie like swipe action on a UITableViewController which has custom drawn cells using a UITableViewCell subclass. For this I have used the code provided here: http://thermoglobalnuclearwar.com/opensource/ My UITableViewController has a UISearchDisplayController implemented and the searches are work...

Is there any advantage to using a wildcard provisioning profile?

I remember before reading that if you used a wildcard provisioning id (eg net.nevan.*), you could have easier sharing of information between your apps. Now, many things require a provisioning id for each app to be unique (iAds, notifications, in-app purchase). Actually, looking at my apps on the app store, they are all using unique ids. ...