I am trying to learn OpenGL on the iPhone using the "Super Bible" but am having trouble porting from OpenGLto OpenGL ES. My understanding is that the glRectf() function is not available in the latter. What is the substitute approach? Any relevant conceptual information would be appreciated as well.
...
I'd like to see some sample code for that. Any good Tutorial-Link is also welcome.
...
I want to do this: If the device moves (accelerometer values change), then I want to adjust some values in my view according to that movement.
Would I invoke a method every time an accelerometer value changes? I believe that would be a bad idea, since they might refresh too often.
...
I don't really like that flip-transition. It's boring. I'd like to see something cool, like water effect, fog, or whatever. Is there something available or do I have to (re)invent the wheel for that?
...
I've got an UIScrollView with a grid of images. Currently they're only 6, but there might be a few hundred some day. So of course it would be a bad idea to create a few hundred UIImageView objects inside that UIScrollView and fill them all up with image data. I think I was reading this somewhere in the Apple docs: They recommend to only...
I think that there are some issues with the earth Gravity, so I wonder if there are any examples where the accelerometers work by subtracting these.
...
The documentation says:
If the value of the property is YES,
the scroll view stops on multiples of
the view bounds when the user scrolls.
The default value is NO.
well it's really nice that it stops on multiples of the view bounds when the user scrolls ;) But how many multiples? how's that beeing calculated? I get a really w...
I'm building up a grid of images, and I start at the top, creating UIImageView objects all over the place. Now I want that they overlap a little bit, but the last ones I draw are the ones most on top. I'd like to set the z-position programmatically, so that the first ones I draw will be the ones most on top.
...
I’ve been busy working on the graphics for my iPhone application. I started working on generating icons for my UITabBar and ran into lots of problems. How do you create these icons?
I created this solution:
http://www.nailrails.com/?p=46
Are there any shortcomings to this approach? It seemed to work for the few icons I created...
...
Hi everyone,
I'm curious what your solution is for high performance XML parsing on the iPhone is, given its limited amount of CPU power. I have reviewed the XML Performance App that Apple provides as a demonstration, and it seems that for the data feed (300 iTunes songs) that they're parsing.. libxml2 always seem to come as the forefron...
I am trying to learn to write OpenGL apps for the iPhone. How can I port the following code to work with OpenGL-ES? I know that I must store the vertices in an array and then call glDrawArrays(), but is there an optimal way to do this? My thought is to create a very large array and simply keep a counter of how many spaces are filled. Thi...
I have an view controller class. I want to do some things in my view when the accelerometer detects movement and calls the accelerometer:didAccelerate: method in the delegate object.
That delegate object is the problem here in my brain. Currently, my brain is freezed and I don't get it what would be better. Let me know what you think!
...
Hello,
I want to add a button to my iPhone application which will open an URL in safari on iPhone when clicked (my application will terminate right?)
Thanks.
Raihan
...
I'd like to use properties for my instance variables, but in many cases, I only want the class itself to have access to the setter. I was hoping I could do something like this:
Foo.h:
@interface Foo {
NSString *bar;
}
@property (readonly) NSString *bar;
@end
Foo.m:
#import "Foo.h"
@interface Foo ()
@property (copy) NSString *bar...
I'm making a simple tab bar iPhone application. It has two tabs, one with a UIWebView and the other with a few text fields to hold settings, and a button to save the settings.
What I want to do is reload the UIWebView when the user clicks save on the settings tab/view. I already have it saving the settings, I just need to figure out h...
Hello All,
When I try to edit texts in my iphone application (UITextfield), it auto-corrects my input. Could you let me know how can I disable this?
Thanks.
...
Hello All,
Could you let me know how can I change font size of button caption in interface builder (iPhone application)/ or any API?
Thanks.
...
Hi,
I want to use image buttons in my iPhone application. Could you please let me know if there is any article I can read on this.
Thanks.
...
Hi,
I'm trying to take a snapshot of the iPhone simulator when a row in a table view is selected, before the new view appears. I have been unable to find a point where I can stop the simulator, with the row selected, so that I can take a snapshot of it. How do I do that?
Thanks for your time.
...
I am trying to play the sample sound file in the avTouch sample code from the Apple dev site. I can't move the app to my phone as i am in the enrollment process and don't yet have access to the phone.
The code below is from the sample code.
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath: [[NSBundle mainBundle] pathForResource:@"sa...