I have a jQModal window on my site that has its content populated by an Ajax call. It works fine in all of the desktop browsers, but it fails in Mobile Safari on the iPhone.
The overlay and the window itself are displayed on the top of the body of the page, rather than covering the iPhone viewport. If you scroll up, you can see the win...
Ok so in mobile safari you can pull up a web page and touch and hold on an image to save it to the iPhone's photo library. In a UIWebview on a view this does not happen (it pops up the alt-text and never prompts you). I'm wondering if anyone knows a way to turn this feature on.
...
Hi,
Say I have a tabber item a that displays a view v1, now I push sv1 while viewing v1. If I press the tabber icon at the bottom, then I have seen that it takes me back to view v1. Is it the default behavior? Is there any function called when I press tabbar item on iPhone?
Thanks
...
Hi,
I am creating a view controller that will be used to enter text information.
The view itself consists of a label, text field and two buttons in the navigation bar: "cancel" and "OK".
When user presses "cancel" I am just popping back to the root view controller.
But when he presses OK, I want first to call a function from the root...
Hi,
I have a relatively simple app. I have a fullscreen UIView subclass (musicGridView) that the user interacts with, and a UIScrollView subclass (scrollView) that loads this class in, as well as a ViewController and mainWindow.xib.
Right now, I have a viewController instance loaded in the nib, which is of type myViewController. ...
i'm participating in the iPhone Developer Program and i have access to the iPhone 3.0 firmware and SDK.
one of the new features of the iPhone 3.0 -- is ability to use Bluetooth, but i can't find any documentation about it.
can someone point me please -- where is it?
...
It appears that touch events are happening on a different thread then OpenGL rendering. Is this the case? The context for this question is a particle system I am building that uses touch events to trigger OpenGL drawing. Since OpenGL drawing is rather heavyweight I am concerned about threading implications.
Any insight would be much app...
Hi,
Here is the scenario. I have 4 view controllers v1, v2, v3, v4 which are displayed in 4 tabs of iPhone (using UITabbarcontroller). now I push another view sv1 to v1 (while I am viewing v1, I use pushviewcontroller like [appDelegate.nv pushViewController:sv1 animated:YES]). nv is UINavigationController init with rootviewcontroller, v...
I am using sqlite for my iphone and I anticipate the database schema might change over time. What are the gotchas, naming conventions and things to watch out for to do a successful migration each time?
For example, I have thought of appending a version to the database name (e.g. Database_v1).
...
Is there a way to know when the dismissModalViewControllerAnimated is initiated and when it is completed (such as the idiom for viewWillAppear and viewDidAppear)? Unlike other animations, this one doesn't seem to have a delegate that tells you.
...
Hey guys,
I'm trying to differentiate between two (or more) UITouch objects on the iPhone.
Specifically, I'd like to know the order in which the touches occurred.
For instance, in my -touchesBegan:withEvent: method I get an NSSet of UITouch objects. Now I can find out how many touches there are, but, which object represents which finge...
Hi,
how do I get a list of e.g. Restaurants around me? As far as I can see, google enables JS requests only, right? I would not want to use the WebView for that. Are there any other ways to get it? May be not google?
I'm wondering because it's such a common task, but I've found no info on the net about it..
Cheers
...
Currently in iPhone SDK, doing
ABPersonSetImageData
to set an image for a person creates a distorted thumbnail if image's height != width (try it out yourself). Has anyone come up with a solution for this?
Below is what happens if I do ABPersonSetImageData using a 200x30 image.
http://qkpic.com/767fd
...
I'm trying to set an imageviews origin to offset from another imaeviews origin but am having no luck a all.. I wanna be able to offset the other imageview so it doesn't appear directly ontop of it but a little to the left or right of the images center and up a little bit.
here's my code.
imageView1.center = CGPointMake(imageView2.cente...
I have about 10 images in my app. They are in the bundle as resources. Is it better to load them from the bundle on each app start? Or deploy them to disk once and always load from disk?
...
I'm about to develop a simple 2D game something like chess, checkers, or reversi. There are only simple animations of the players pieces. No complicated math nor graphics therefore I'm wondering if it is better to go with P2P over a client/sever approach.
The game will be an iPhone/iPod Touch game (and later on run in a Web browser game...
I load some .wav files in my iPhone app like this:
SoundEngine_LoadLoopingEffect([[bundle pathForResource:@"loop" ofType:@"wav"] UTF8String], NULL, NULL, &MySounds[Loop]);
SoundEngine_LoadEffect([[bundle pathForResource:@"intro" ofType:@"wav"] UTF8String], &MySounds[IntroMusic]);
The "intro.wav" file takes up some space (approx 2 meg...
Hi All, i've been trying to figure out wh. sqy my object allocation keeps rigth up every time i call this function, Instruments reports no leaks but I get a heck of a lot of object coming from
sqlite3_exec --> sqlite3Prepare --> sqlite3Parser --> yy_reduce --> malloc & also a whole bunch from
& from
sqlite3Step --> sqlite3VdbeExec...
What would be the best way to go about adding collision to my application. Right now I have a lot of jagged walls and a couple of weird shapes that I wanna make collision for but am not sure which is the right path to get the job done. What would you guys do if you had a room full of walls with different shapes and sizes that needed coll...
I'm using OpenGL ES to draw things in my iPhone game. Sometimes I like to change the alpha of the textures I'm drawing. Here is the (working) code I use. What, if anything, in this code sample is unnecessary? Thanks!
// draw texture with alpha "myAlpha"
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE,GL_COMBINE );
glTexEnvf(GL_T...