ipad

OpenGL 1.1 fog performance on iPad

Hello, is there a way to change per fragment fog to per vertex fog on iPad using OpenGL 1.1? I have tried glHint(GL_FOG_HINT, GL_FASTEST) but the fps is still very low when using fog(fps is more than double without fog) ...

How do I dissmis an UIPopoverController when clicking on anywhere on UINavigationBar ?

Now my UIPopoverController auto dismiss when click on anywhere but Navigation Bar. Does anyone have solution ? Thanks for help. ...

ipad default-landscape not displaying.

Hi, I have added both images. Default-Portrait.png and Default-Landscape.png. But whenever I start my app, only the portrait default image is displayed irrespective of the orientation. Why is this happening? ...

iPhones OS: how to programmatically differentiate iPad 3G from iPad Wi-Fi?

Is there any property or other mechanism in iPhone OS to check during runtime whether application is running on iPad 3G or iPad Wi-Fi? Seems like UIDevice class does not provide anything like that. My application is using internet access extensively and I would like to explicitly warn user that on 3G delays or additional costs can be ex...

Outline view from UITableView

Hi guys, I need to implement a 1 level outline view out of UITableView. The cells which have children in them will have a '+' symbol and if user taps on it, the cells below it should slide down and the children cells of current selected row should appear. The sliding of cells should be visible and if the user taps '-' button of the alre...

iphone dev - using an iPad to simulate an iPhone environment

I made a universal app and I need to test on iPhone and iPad devices. However, I only have an iPad now but not an iPhone. Is there an easy way to use an iPad to simulate an iPhone environment so that I can do testing on iPad (and pretend it is an iPhone)? Thanks in advanced. ...

Modal View Does Not Appear in Center in Horizontal Orientation

I have a UIPresentationFormSheet (contains a textview) that appears in the center of the screen when I am in vertical orientation. When I dismiss the modal view, it disappears fine. When I am in horizontal orientation my modal view does not appear in the center of the screen. I have to dismiss my keyboard for the modal view to appear in...

jQTouch flicker on iPad with pixel doubling

I'm using jQTouch on an iPhone application and one of our requirements is to make this work in the iPad with pixel doubling. I believe there's a bug/issue with jQTouch on the iPad (running within an app UIWebView, but pixel doubled) that causes the screen to flicker during transitions. Pretty much every transition has a stutter/flicker ...

How to create Button dynamically in -(void)touchesBegan() function call in iPad

HI, I am trying to create buttons and text views on touch events from WebView. I am creating the Button creation code in below code. -(void)touchesBegan: ( NSSet* )touches withEvent : (UIEvent ) event{ } capturng of the touch events is happening properly and above fucntion is called also. But the button creation is not happening...

Why is a CoreData forceFetch required after a delete on the iPad but not the iPhone?

When the following code is run on the iPhone the count of fetched objects after the delete is one less than before the delete. But on the iPad the count remains the same. This inconsistency was causing a crash on the iPad because elsewhere in the code, soon after the delete, fetchedObjects is called and the calling code, trusting the ...

Why does CodeMirror not work on Ipad ?

Greetings, http://marijn.haverbeke.nl/codemirror/jstest.html works on Safari on PC, but not on an Ipad. Which is a shame, since I wanted to use it for an app. My question is not only why does it not work, but how should I go about analyzing things that break on Ipad Safari ? T. ...

iPad launch orientation

After reading many posts, I still haven't got a clue how to solve this problem... The first view of my app is a tableViewController. I override (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation and it always returns YES. If I hold my iPad upright under landscape orientation, it rotates ri...

How to make modal view scrollable?

I have a modal view with a textview and a button. When the keyboard is displayed it covers up some of my UI elements. I'd like my modal to be scrollable so that it can be viewed while the keyboard is displayed. How can I do this? ...

iphone dev - loading table content asynchronously

My app has a navigation controller which push and pop a series of views. One of the tableViews loads .xml file from URL and it takes 4-5 seconds. If I click the back button on the navigation bar, it will only respond after the content of the table finish loading. Is there an easy way to load the content asynchronously so that the app wil...

iPad iPhone scale background images

Just wondering if anyone else has experienced the iPad/iPhone scaling their background images down to fit the view port. In my case, I'm swapping out background images via javascript, and the new background images are super wide to fit large displays. However, the iPad is scaling down the background images that are added to the DOM via ...

NSUserDefaults doesn't save

Hi everybody! i'm trying to save some informations in an iphone/ipad app. The problem is that it works but if i close the app (with the home button on the simulator or closing with cmd+q) the informations become lost! this is my code (and, if you see, i used "syncronize") - (IBAction)choose1{ NSUserDefaults *defaults = [NSUserDefa...

Best way to programmatically detect iPad/iPhone hardware

The reason I need to find out is that on an iPad, a UIPickerView has the same height in landscape orientation as it does in portrait. On an iPhone it is different. The iPad programming guide introduces an "idiom" value to UIDevice: UIDevice* thisDevice = [UIDevice currentDevice]; if(thisDevice.userInterfaceIdiom == UIUserInterfa...

changing text color in custom UITableViewCell iphone

Hello. I have a custom cell and when the user selects that cell, I would like the text in the two UILabels to change to light gray. ChecklistCell.h: #import <UIKit/UIKit.h> @interface ChecklistCell : UITableViewCell { UILabel *nameLabel; UILabel *colorLabel; BOOL selected; } @property (nonatomic, retain) IBOutlet UILa...

commitAnimations is not resizing my UIImageView subview

I have created a UIView as a subview and to that subview I have added a UIImageView as a subview. UIView *viewCreated; UIButton *buttonCreated; UIImageView *imageViewCreated; CGRect myFrame = CGRectMake(0, 0, 1024, 1024); viewCreated = [[UIView alloc] initWithFrame:myFrame]; [viewCreated setTag:intTag]; viewCreated.backgroundColor = [UI...

Building/Testing a Universal iPhone/iPad application

I have a project configured (I think) to produce Universal binaries. The base SDK is set to 3.2 and the Deployment Target is set to 3.1. Target Device Family is iPhone/iPad and the architecture is armv6 armv7. I had a few questions about how this Universal binary thing really works: 1) When I want to submit an app binary for review, wh...