iphone

How would you model Location in Core Data?

I want to make an Entity for Location with properties: latitude & longitude. Then, I want to set a relationship from User to Location, from Photo to Location, etc. Should I do it without creating an inverse relationship from Location to the others? Otherwise, how would I do it like that? Thanks! Matt ...

Sort items in a table view in iphone

Hi , I am developing an application in which i am displaying the result of web service in table view, now i want to display according to the selection. for example. there are certain items such as price, description, title. now if i want to display all the result according to price how should i display. I have used XML parsing to display...

How to change view after video played?

I would like to make an application in which, when I press a button, one video starts playing, and when it finishes or when I press "done" button it should take me to a view different from the first one where I launched the video. ...

How do I get my 3ds Max models into an iPhone 3D game?

I've written a couple apps that are currently published in the app store. However, I'd like to start writing games that use OpenGL ES. I know how to model objects in 3D Studio Max but what I don't know is how to get my models into an OpenGL ES application on the iPhone/iPad and then manipulate those objects to create gameplay. Can anyon...

UITextField auto-suggest from a large database

Hi, I am trying to add suggestions for a UITextField. They show up as a UITableView below the text field that displays a few entries according to what the user is typing (like Google Suggest for example). The only method I tried so far is a select from an internal SQLite database. This works, but it is extremely slow as the database is...

iPhone programming: how to use URL's API (e.g. BLAST)

Dear All, I am new to iPhone programming and would like to be able to use the BLAST (is a bioinformatics server) URL's API from the iPhone. I would like to write a very simple application that queries the BLAST server and make some query. I have found the following I have found the following documentation on BLAST (http://www.ncbi.nlm...

how to add a image from the photo storage to a UIWebview

Is there anyway to display a image in a UIWebview from the iphone photo storage ...

iPhone app "has active assertions beyond permitted time"

I'm trying to make sense of some crash logs I received for my iPhone app. The main thing that I can see that's useful is: Application Specific Information: MyMoodTrack[144] has active assertions beyond permitted time: {( <SBProcessAssertion: 0x73c6480> identifier: Suspending process: MyMoodTrack[144] permittedBackgroundDuration: 10...

How a new view in Tab bar app, that is not part of tab bar, but does not hid the tab bar.

Hi guys. I have a tab bar app, created from the template. One of the views is a tableview, and when the user touches the header I have a new tableview flip over to show some new data. When the new tableview displays, it hides the tab bar. I want the table bar to be visable and active. I cant seem to work out how to do this. Any pointer...

How to deal with screen position constants in iPhone code?

I have a requirement to fill cells with varying length wraparound text. My current routine is handling this satisfactorily, however, I am concerned about the use of a couple of constants being used. The values 10 and 260 below represent the margin and cell width expected, but they are only accurate for standard definition resolution in...

IOS3 Compatible App in IOS4 Mutlitasking

Hi All, This is a follow on from http://stackoverflow.com/questions/3648530/iphone-app-submission-issues If I have a IOS3 compatible app, how does it handle in IOS4 in regards to Multitasking? i.e. When the IOS3 app is closed on an IOS4 phone and than they reopen it, will it restart or is it backgrounded/multitasked and when reloaded ta...

Does selectRow:inComponent:animated: cause pickerView:didSelectRow:inComponent: to fire?

I'm getting some strange behaviour, and I'm wondering if a root cause of that behaviour might be selectRow (used to set which row in the picker wheel should be viewed as selected) causing didSelectRow (which I thought was only used for user input) to fire. I certainly can't come up with any other reason for code that should only be in d...

Application failed codesign verification

This is my first app being submitted to the app store, and I did everything according to the apple guide, but when I finally tried to build with the distribution configuration, I get one error and one warning. This is my build log of the error and warning, and I was wondering if anyone could tell me what is going on here. warning: Appli...

How to change color of tableview background

I am trying to figure how to change the color of the background of a plain uitableview after the using has scrolled past the top or bottom of the table. Not sure what its called but if you look at the mail app, if you scroll down, whilst already at the top of the table, the background is a dark gray color with a slight gradient. Anyone k...

UISearchBar frame making x hard to press

I have a UISearchBar in my UINavigationBar that also has a button in it. When you click the search field the button gets a bit larger to accommodate text and the search field gets smaller to make space for it. Although this looks perfect as far as visual UI is concerned the x to clear the search field is almost unclickable. I am settin...

iphone easy oauth

I'm trying to use the OAuthConsumer library for iPhone to post tweets. I have done the same thing on Android with the following procedure: 1. Get request token 2. Show webview asking for authorisation and let the user authenticate 3. Capture callback request URL and take out the oauth_token and oauth_verifier. 4. Use the oauth_token to s...

iPhone Simulator 3.0

Is it possible to test my app in the iPhone Simulator w/ the 3.0 SDK. The only options that I currently have available are 3.2 (iPad) & 4.0 (iphone). I know I could buy a iPod Touch w/ 3.0 off eBay or something but I'd really like to avoid spending money if it's possible to get this working in the simulator. ...

IPhone/IPad: How to get screen width programmatically?

Hi I'm wondering if there's a way to get the width programmatically. I'm looking for something general enough to accomodate iphone 3gs, iphone 4, ipad. Also, the width should change based on if the device is portrait or landscape (for ipad). Anybody know how to do this?? I've been looking for a while... thanks! ...

How can I enable vertical split views in the Xcode IDE?

Hello. I'm diving into iOS development and I'm using Xcode on a multi-monitor setup. Obviously I want to take advantage of the multiple monitors to view and edit multiple panes of source code, but I'm having a hard time figuring out how to enable vertical split views. In other IDEs, it's just an option you click in the "Window" menu. ...

iPhone SDK - Big UITableViewCell

Hello everyone, I just wanted to know what kind of UITableViewCell are on applications such as "Mail", and how to set one up. They seem to have much more length for extra text and other objects. A good sample project or some code/reference link would get me started. Thanks, Kevin ...