iphone

Future of Mobile Development

I was reading an article based on Mobile Development in 2020 and run into such a pessimistic claim: "But the economics are a different story. The ratio of those developers who will fail is about 90%; they will simply not make a return on their investment or make a good enough living at this," said Mr Laurs. He said th...

How do you remove an object from an array ?

I was wondering how do you remove objects from an NSMutableArray, cause right now I use [astroids removeFromSuperview]; but it just gets rid of the image on screen but the instance itself is still present even when removed. ...

Tab bar programming

Hi , I have a Tab bar based application. Can I change the tabs highlighted Programatically? I mean can i navigate from one tab to the other without actually clicking on the tab icons ? ...

On the iPhone, how can I make the icon badge?

I want to set an icon badge while I am not in the application, like the Mail application. How can I do that? ...

How to run my iPhone application once a while even the user doesn't open the app?

Is it possible to do this? Edit: Not even if I try to have an alarm after my application is closed for a short period of time?? ...

Efficient approach to do search using SearchBar,SearchDisplayController and UITableView.

I want to do postcode search using SearchBar,SearchDisplayController and UITableView. I am thinking of doing it using CoreData, but still I want to know if anyone has some efficient idea to do the same. And database have 15000 row, so is it advisable to port sqlite file into application and use core data API to fetch the results. Than...

How to use @sum with CoreData

I have Week model that has Day as child objects. There is "days" relation property in Week model to access all associated Day objects. Day model has duration property. How can I figure out sum of day's durations for specified Week object? It would be great to have code example how to create a predicate object with @sum function. Also i...

How to hide and password protect an image stored on iPhone?

how to hide any image stored in iPhone. And also how to password protect that image using XCODE. ...

Is it possible to distribute an iPhone Web Application through the App Store?

By Web Application I mean a web site targeted at Safari on the iPhone that can run "off-line" (by using a cache manifest file, JavaScript database, running full screen from an icon on the home screen.) The user experience as a Web Application is fine once it's installed, so there is no need for it to be native, and potentially, an app d...

What are the restrictions on MAP use with the iPhone 3.0 SDK?

I am the owner of a project that uses open source maps for an iPhone 2.0 app. My team and I are debating whether to upgrade to the iPhone 3.0 expose Map APIs, but I suspect that Google and Apple have put restrictions in just the wrong places. What barriers are out there? ...

Swipe functionality on UIwebview iPhone development -

Hi, I'd like to capture user's swipe event for my iPhone application. as per apple, It can be easily get it from touchesMoved:withEvent:. I have UIView which contains navigationbar on the top, toolbar at bottom, in between it has uiwebView. Now when user swipes i want to capture this event, but i am not able to get user's touch event...

does someone knows about this error in xcode gdb?

2009-07-21 12:47:14.458 FlashCards[1328:20b] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)' ...

How to make the coordinate of a graph user interactive?

I have tried to plot a graph using Quartz 2D . It looks more like a drawing. But I am fixing the axes and plotting the coordinates according to the axes. But the problem is I want to make the graph user interactive. Each coordinate on the graph will further have to drill down showing the details of the coordinate. So how can I make the c...

reloadData method not called from another class

Hi All, I will directly start from an ex: I have two classes A and B, both are derived from UITableViewController. I have also added them into navigation controller so there is navigation going on from A to B. These both classes use database for showing data into the table. Now in B View I delete a row from the DB and A view displays t...

Cocos2d-iPhone 0.8 sound-engine woes

Hey all, looking for some advice on using the experimental sound-engine in cocos2d-iphone v0.8. What I have done is to create a class called audioManager and house it in the appDelegate so that it is available to the whole application pretty easily. I don't instantiate the class until the splash page has started so it should atleast have...

Can I still do object oriented programming when using OpenGL ES on iPhone OS?

When I program with OpenGL ES on iPhone OS, I have to use a lot of OpenGL functions. This looks very procedural to me. I wonder if I could make a class called "cube", which will draw an cube if called. Or must all the application code be in one huge scope? ...

What's the preferred vertex data format for OpenGL ES on iPhone OS?

In the book "Mobile 3D Graphics with OpenGL ES and M3G" the authors say that choosing the correct vertex data format will have huge impact on performance. They recommend GL_SHORT for most vertex data. Does this also apply for iPhone OS? ...

Is there an API for drawing statistics in OpenGL ES on iPhone OS?

If I wanted to draw pie charts and other nice stuff, are there libraries or API's for doing this? ...

Is it possible / performant to switch between an OpenGL ES view and UIView in one application?

Imagine an iPhone app, which starts with an standard UIView showing some buttons and stuff. Then there is a stats button, you tap it, and the UIView slides away. Instead an OpenGL ES view comes in, and shows a nice statistics curve. I know you can mix OpenGL ES with UIView somehow but people say it's a bad idea. Does this also apply if...

iPhone setting text from HTTP JSON response in UITableView displays corrupted characters

I'm trying to display text in a UITableView that's a response from a JSON containing something like "Congratulations you just won a prize!", and when I display it in a UITableView the first 9 characters are "corrupted" and display weird symbols. When I do an NSLog("%@", jsonString); I see the text correctly. Is there some type of UTF8...