iPhone OpenGl render text
Does anyone know how can i render a string on the iphone? Its for displaying my frame per second with =p ...
Does anyone know how can i render a string on the iphone? Its for displaying my frame per second with =p ...
I am writing a program which redraws a graph every so often. Unfortunately it seems that for some reason core graphics does not seem to release the previous graphic so I run into memory problems fast. How can I force it to release memory at the end of each draw? Not that this is not a memory leak as the memory does get released when I l...
I have an application that opens a connection with 2 sockets (in and out) and I want to have them working in a thread. The reason that I want them to be in a separate thread is that I don't want my application to freeze when I receive data, and this can happen anytime as long as the application is running. Currently I have a class that...
Hi, I'm trying to do some Unit Testing on method that includes SQL call wrapped by FMDB. I get a lot of linker errors when i try to build the project such as these ones : "_sqlite3_step", referenced from: -[FMResultSet next] in FMResultSet.o -[FMDatabase executeUpdate:arguments:] in FMDatabase.o "_sqlite3_column_name", ...
Hi, all I have UIWebView with some content And i need to make its scroll indicator visible for a short time (like [UIScrollView flashScrollIndicators]) Any ideas, how to do this? Thanks. ...
Web services -> core data -> controller -> view and then reverse... Sound right? Or is there a better way, one that avoids the complexity of SOAP? Additionally can core Data recognize XML coming from SOAP? Thanks // :) ...
I was told that the iPhone does not support multitasking and multithreading. This did not make sense to me, so I tested on the simulator: pthreads works, fork() doesn't. This result does make sense to me, but now I'm not sure: will the pthread library also work on the real device? Thanks. ...
I have a "navigation based application" which also needs to have a view always displayed at the bottom of the screen at all times. I added this new view to a UIWindow after adding the UINavigationController's view: // In my delegate's applicationDidFinishLaunching method [window addSubview:navigationController.view]; [window insertSubvi...
Hi, I am using TabBarController in my application. In one of the view of the tabbar I am using a UIImagePickerController to pick an image. When I add the picker as follows UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.editing = YES; [self presentModalViewCo...
I am working on a photo gallery app. Root view is a navigation controller which takes the user to the thumbnail view. Tapping any thumbnail takes the user to PhotoView which shows the tapped image in full screen. Below is what I have done in my PhotoViewController: The approach is pretty much similar to the ScrollingMadness project whi...
Hi, I've got an amount of seconds that passed from a certain event. It's stored in a NSTimeInterval data type. I want to convert it into minutes and seconds. For example I have: "326.4" seconds and I want to convert it into the following string: "5:26". What is the best way to achieve this goal? Thanks. ...
Hi, In my app I've got a certain distance in meters. And I want to display it in kilometers if user prefers kilometers and display it in miles if user prefers miles. And in the first case I want to add to a string "kilometers" at the end and in the second one to add "miles". What is the best way to achieve this goal? Thanks. ...
Hi, I have 52 records in DB, get those and store in an Array. Now i want to distribute them in to four arrays each array will have to 7 records only so only 28 records will be among 4 arrays and remaining will be in new temp array. Actually this is a card based game with four players, card will distribute like this: begin from first pla...
I am currently using the cocos2d Director for controlling my animation with the pause, resume, and stopAnimation methods. Is it also possible to use the Director to return the time that the animation has played? I am currently using this method: -(void)stopAnimation:(id)sender { //Timer initialized elsewhere: startTimer = [NSDate ...
Hi! I was wondering if I can deallocate the depth buffer in iPhone OpenGL ES to conserve memory? Or it stays until the application finishes? I only need the depth testing in the beginning of the application. ...
Hi all, I am using the following code for UIImagePicker, UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; [self presentModalViewController:imagePicker animated:YES]; [imagePicker release]; When I run instrument, I see a memory leak on the first line of the code. Though I a...
What equation is needed to move a point on an isometric plane in a 2d space? I've looked several places on the tubes. Mostly here. and I haven't been able to decipher it. I'm not a math major, unfortunately. What I need to do is move a point from (0,0) to (1,0) or (0,1) on an isometric plane consisting of 10px blocks. In normal-ville ...
Hi, I need my application to be running without the iPhone going to sleep. But I'd like to turn the screen off. Something similar is done in the Phone application, when you speak on the phone. I prevent the iPhone from going to sleep in the following way: [ [UIApplication sharedApplication] setIdleTimerDisabled: YES]; But how can I tu...
Hey All, I'm designing an iphone application from a designer's POV so I'm unsure about some of the more complex interactions in the iphone SDK. Curious if anyone knows if this is possible: I noticed that most text fields will open up the keyboard without any auto-suggest going on. I'm wondering if its possible for the textfield to open...
Hello I have been here before, asking for a mapping library that could store objects in a database. Some one told me about the Core Data Framework. I have read a bit about it and I kindda understand it. I have created some "test Core data projects", where I have worked with simple problems and models ala Person and Group. But now I wan...