iphone

Why Lua is better for game developement than the iPhone Quartz framework?

I have seen lots of information about the Lua scripting language for game developement, but I don't understand why it's more powerful than the Quartz framework. What functionality does Lua give that Quartz does not? ...

Get and display HTML data from SQLite3 (Iphone)

Hi, I try to retrieve HTML data from my database and display them in a UITextView, the only problem is that I don't know how to tell him that its HTML code and not only text, for the moment I have that: NSString *aDescription = [NSString stringWithUTF8String:(char *)sqlite3_column_text(getFicheStatement , 1)]; Thanks, ...

glDrawElements allocating memory and not releasing it

Using OpenGLES 1.1 on the iPhone 3G (device, not simulator), I do normal drawing fun. But at points during the run of the application I get giant memory spikes, after a lot of digging with instruments I have found that it is glDrawElements that is grabbing the memory. The buffer being allocated is 4 meg, which to me means its loading a ...

Search for Wireless Network within iPhone Application?

How can I search for Wireless Network (and connect it after) within an iPhone Application? Is it possible? ...

Download files in iPhone application?

1) How to initialize a download of contents, say a document or XML, to iPhone? 2) Where will the downloaded files be stored? 3) Any restrictions on file download? Any forbidden files? ...

how to match correct answer and question in game application.

I have implemenetd game application.In which there is four labels(answer) on left side and four question on right side.Answer is randomly arranged.Now i have draged the answer label on a particular question.Then how become i know there is correct answer and question?can u help me? ...

Preload Images in iPhone application?

I have a sequence of images needed to display in a short time (PNG sequence). There are totally 31 PNGs in total, each with file size about 45KB. I have already loaded them with the following codes: imgArray = [[NSMutableArray alloc] init]; for(int i = 0; i <= 30; i++) { NSString * filename = [NSString stringWithFormat:@"img_000%.2d...

How to declare and change global variable in Objective c

can anyone tell how to declare and change global variables in objective c ...

How to keep track of the number of iPhone app users?

Hi, Is there a way to find out how many users are using a specific iPhone app. I just want to check the numbers of people using my app. Thanks ...

Connection to TableVIew

Create a new subclass of UITableViewController in Xcode Move the known-good implementations of numberOfSectionsInTableView: tableView:numberOfRowsInSection: and tableView:cellForRowAtIndexPath: to the new subclass Drag a Table View Controller to the top level of the existing XIB in InterfaceBuilder, delete the View/TableView that are aut...

IPhone - ViewSwitch Problem

HI everybody, I've got a problem with the view-switch. When first switching into the landscapeview everything seems to be ok, but switching back into the portraitview my view is scaled in the wrong way. so the left picture shows how it should look like (and how it looks before the switch), and the right one shows how it actually looks a...

Where is NSTemproryDirectory present?

I am doing image caching and I am saving the files to a temporary directory NSTemporaryDirectory. Its seen in log as /var/folders/.... .Where is this thing present. I am currently doing all this in the simulator? ...

identifying swipe in UIScrollview?

hi, i want to use UIScrollview with one imageview.if i swipe image, next image must be shown.how can i identify horizontal vertical swipe ...how can i detect event?what i have to do in scrollViewDidScroll method.if i add touch event methods, it did not work? any help? i dont want to use PageControl....can i include Touch Event on UISc...

iPhone SDK - UIWebView embedding a YouTube Video

I am using this to prevent the app from opening the youtube app and instead plays the video whilst staying inside my app. It works fine and all but it's a bit slow with loading it's date (they're inside a tableview, each cell for about 15 atm~). The moment when it suddenly loads everything correctly is when this error has been passed i...

iPhone: how to prioritize items in a CFRunLoop (OpenGL related)

I have an OpenGL application which is rendering intensive and also fetches stuff over HTTP. Following Apple's samples for OpenGL, I originally used NSTimer for my main painting loop, before finding out (like everyone else) that it really isn't a good idea (because you sometimes have huge delays on touch events being processed when slow ...

D programming & iPhone

I've just started learning "D Programming". I'd like to deploy my programs on an iPhone. which has me wondering; is is possible to develop for a Mac or iPhone using D?. I'd like the application to be completely written D or at least minimal objective-c. Am I starting a hopeless battle by choosing D over the other mainstream languages ...

Duplicating the pinpoint feature of mapkit in an imageView application?

I load a set of images in my screen. When it loads on one image I want a pin to be pointed with some value written in the blackbox on that image. But how to get a blackbox like the one we see, when we click on the pinpoint of a map? And how to keep that image or whatever it is on that image ...

session in iphone

consider i have created login form in iphone how can i store login information in for that entire session ...

How can we clear the cached images when we clos the app?

I cache the images to the document directory of my app using the following code. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *saveDirectory = [paths objectAtIndex:0]; But even after I close the application, its still there. How can I clear it when I lose my app. I am doing...

Question concerning dealloc and applicationWillTerminate

Hi, I have literally the same problem, as described here http://www.iphonedevsdk.com/forum/iphone-sdk-development/968-breakpoints-dealloc.html#post7406 Sorry for the quote, but the description is perfect. Because my dealloc is also not called automatically, my question is, am I supposed to overwrite applicationWillFinish and call [self...