iphone

Contact Picker in Titanium for iPhone

i am using titanium to build iphone apps i am trying to build an app to send an sms through Online SMS Gateway. i want to let the user choose the numbers from contacts and insert the number in textarea or something like that. any idea how to do that ??? something like that http://i.imgur.com/aWeK7.jpg ...

Adding a Menu Screen to an iPhone/iPad application?

I'm working on a game application for the iPad and now that I've made the game work in a single view I wish to add an opening menu where a user can either go to the game or change the settings. How do you lay this out in xCode? Many thanks in advance from a puzzled programmer. ...

Is the UITableViewCell subclass used in Apple's native Mail app available anywhere online?

Is the UITableViewCell subclass used in Apple's native Mail app available anywhere online? Thanks. ...

Compiled Error in Xcode for iphone game and other questions

Dear all, Hi, I am a newbie of xcode and objective-c and I have a few questions regarding to the code sample of a game attached below. It is written in objective C, Xcode for iphone4 simulator. It is part of the code of 'ball bounce against brick" game. Instead of creating the image by IB, the code supposes to create (programmatically)...

iPhone: What is the correct way to leave an Application?

Hallo Everyone, with the iOS 4, the iPhone is supporting Multitasking, what is very nice, but something I do not wish to support in my Application. I mean, when the user press the Home-button, I want my application to finish and not to enter in Background. With the iOS 4, when the User press the Home-button, the App calls the applicatio...

iTunes connect. iPhone provisioning portal Question/Error

Hello. I've created an app id in the iphone provisioning portal in iphone dev centre. I'm now ready to 'create' the application in iTunes connect however the bundle id that i created in iphone provisioning portal (App ID) does not show? ...

Reading id and value for a Node in NSXMLParser

Dear all, I have an XML node like this : < State id="1" > AA < /State > how can i read the value 'AA' ? I'm able to read the id value "1" using - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary ...

Global array question

I've tried making a global array that can add and remove items across all view controllers. I've used the App delegate *app .... Method and then allocated an array like this app. Mutable array = nsmutable array alloc init However I can't get it to be implemented globally. ...

Iphone:Downloading game levels(or extra feautes in general)

I have a game where each level has its own logic,so its a module with level -specific code and graphics. I am confused on whether its possible to download and integrate dynamically in the app each level. Searching the web , i found that nsbundle is the standard way for performing this task,however loadable bundles are not supported in iO...

How to create custom uiviewtable?

Hello, I'm working on an app for my client. I'm stuck now. I don't know how to explain. But i make a photoshop image of it. http://i.imgur.com/cV4mL.jpg user tap on parent tablecell. execute didSelectRowAtIndexPath:(NSIndexPath *)indexPath. User select cell. parent cell update. Anyone know what is this called? Do you have tutoria...

iphone sdk: objects get lost when another viewController is pushed??

Hi, everyone, i have no idea why this doesn't work hopefully someone here can help me out. Here's what i'm trying to do: I've got two ViewControllers, lets call them secondViewController and firstViewController. The firstViewController is shown when the application starts and it pushes the secondViewController. Inside the secondViewCon...

markup text parser like stackoverflow's formatter in Objective-C

Hi, I'm in the process of creating a markup editor in Objective C. I require the following functionality: Recognise the demarcation of a block eg **block** Delete the start and end "tags" eg "The next text is **bold**" becomes "The next text is bold" Determine the start and end positions of the marked-up text in the new context: "The ...

iphone: "preload" a view (tab bar controller)

Basically my app loads two RSS feeds - a blog feed and a twitter stream. These are in two different views in a tab bar controller. There is also a Home view which is the default view when the application launches. Ok, so basically when you go from the Home tab to the blog or twitter tab then it takes a while to load. Fair enough, its tr...

how to check if plist is empty

How can i check whether is a plist is empty? ...

Detect if phone is online/offline with PHONEGAP reachability API

Hi and thanks in advance, I'm aware Phonegap has a reachability API and I'd like to know how I can use it to detect if the phone is connected to the network or not. What I found is here: http://github.com/phonegap/mobile-spec/blob/master/tests/network.tests.js I just don't know how to use it or if it even suits my needs. Thanks again...

Add "details view" to UITableView

I have a UITabbar with multiple view controllers. One of them is a UITableView. The tableview is stored in a nib where the file owner is a UITableViewController. I'd like the tableview to show a "detail view" (custom view with a UILabel and some other elements) once a table cell is selected. My approach was to add the new details view a...

iphone web apps: performance hotspots? caching? javascript bottlenecks?

I'm starting to make an iphone app with jqtouch - so i'm keen to hear some best practises. I'm developing for iphones users on a UK 3G connection. Any particular things that cause script blocking? What are the main performance hotspots? Whats the deal with browser caching? If the iphone doesn't cache should i include my scripts and st...

Phonegap offline storage

Hi and thanks in advance, I'm working on a phonegap iPhone app which downloads content from the network in the form of HTML docs with text, images, and embeded HTML5 videos. I want to download these documents as they're available and store them locally, for further reading in offline mode. I've searched a bit and found that the optimal...

How to find out if removed NSNetService is equal to already resolved NSNetService?

Hello, in my iPhone app I have a NSNetServiceBrowser looking for a specific service published via Bonjour. Once it finds a NSNetService I resolve this service (to get the name, IPs and port) and display a list of those found services. Now the problem/question: Once a service stops publishing via Bonjour the NSNetServiceBrowserDelegate ...

What's the best approach for parsing XML/'screen scraping' in iOS? UIWebview or NSXMLParser?

I am creating an iOS app that needs to get some data from a web page. My first though was to use NSXMLParser initWithContentsOfURL: and parse the HTML with the NSXMLParser delegate. However this approach seems like it could quickly become painful (if, for example, the HTML changed I would have to rewrite the parsing code which could be a...