ipad

iPad MPMoviePlayer hiccups

I'm working on an iPad app, it has a few videos within views using the MPMediaPlayer framework. Videos are working nice but on viewLoad there is a flashing of the video area when it loads the video. It shows black for a split second then starts playing. I was thinking of using an NSTimer on viewDidLoad to unhide the hidden video view, ...

can we start a animation, stop it and reassign new animation array to animationImages?

please read the code in my viewcontroller -(void)StartAnimation { if (self.myimgarray == nil) { self.myimgarray = [NSMutableArray arrayWithCapacity:0]; } UIImage *img; for (int i=0; i<=17; i++) { img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"a_expand_%d.png",i] ofType:...

iPad UIModalPresentationPageSheet with navigation controller.

Hi All, I have a navigationcontroller and on click of a row i want a sheet self.modalPresentationStyle=UIModalPresentationPageSheet; that comes up and takes the middle space of iPad (transparent). This works fine but what i want is this sheet which is itself a viewcontroller having table view within it. Now when the user clicks on th...

Profiling iPad/iPhone web application with Instruments

Hi, We're trying to determine why one of our web app ends up getting the Mobile Safari app killed on the iPad (works fine in the Simulator or even on the iPhone). Is it possible to profile a web application CPU/Memory usage by profiling Mobile Safari app via Instruments (either on the simulator, or even better on the device)? Thanks! ...

Upgrade to Universal iPhone/iPad application not quite working

I've been playing around with upgrading from an iPhone app to a Universal application, using the handy Upgrade Current Target for iPad... menu option. Everything appears to succeed (although it's really hard to tell, Xcode just whispers success). So I started to change my MainWindow-iPad.xib file that was generated by the upgrade. And t...

Setup an app to detect OS ver. and iPhone or iPad

How can I detect whether my app is running on an iPhone or iPad, and what OS version it is running? Can I use pre-processor macros in a similar fashion to #if _OS4.0 or #if IPAD or something of the sort? Is this kosher, or should I just make separate builds for submission? ...

For iPhone or iPad development, how do you create a scrollable view so you can place more on a screen?

I have an iPad app out on the app store which I'm interested in making an iphone version for. The whole screen is used in the iPad app, with basic strings that display information. How could I bring all that to the iPhone and make it scrollable? For example, to make it fit on the phone I would have the title on top, then a string statin...

Split interactive Keynote .mov (Quicktime) to one .mp4 file per slide

Hallo everyone, i wonder if someone knows a solution to my problem. I have a Keynote presentation with a lot of animations. I converted/exported this keynote presentation to a interactive .mov (Quicktime) movie. It means that you can use Quicktime to play this converted presentation movie and advance in the slides by pressing any key or...

objective-c : ipad programming : add button to an popover toolbar

hi , i want in my popover a toolbar at the top with an edit button, i can't find how to do that, thx ...

does mousedown /mouseup in jquery work for the ipad?

I am using the current code: $('body').mousedown(function() { $('div#extras').fadeTo('fast', 1); }); $('body').mouseup(function() { $('div#extras').delay(2000).fadeTo(1500, 0); }); This works great in safari but when I upload it and check it out on the ipad it doesnt work? ...

Is serious long-term reading of PDF programming books on iPad feasible?

I typically read 2 hours every day on books and papers. I tried the Kindle DX last year for this. The e-ink technology was ok but the PDF rendering was unacceptable. (Too much margin around the pages, poor grayscale translation, slow rendering, etc.) Now with the new iPad, I’m revisiting the e-reader situation again. I do not care f...

any way to step through javascript touch eventhandlers on the iPad?

Is there any way to step through javascript touch eventhandlers running on iPad Safari? Specifically handlers for the touchstart, touchmove, touchend, and touchcancel events, not non-touch-related code which can be debugged in the (desktop) Safari user-agent simulator. Thanks ...

iPad OpenGL animating texture vs uiimageview

I have a sequence of 24 images that I need to animate on the iPad. The images are full screen - 1024x768. I currently have them displayed using an UIImageView, however there are some issues If I use [UIImage initWithContentsOfFile] to load my images, then the sequence displays very slowly the first time they are displayed, but smoothl...

any way for the web page itself to turn off spellcheck in iPad Safari?

My app is a full-text search interface for ancient texts. The input is always going to be an ancient word. iPad Safari insists on pointing out that it is not correctly spelled -- for modern English, which it ain't. Chrome honors this, iPad Safari does not: <input type="text" spellcheck="false" > Is there something analogous for ...

Removing Code Linking for Different Targets in XCode - iAds

I have an app I am working on which has been split into two targets, one for the iPhone and one for the iPad. The iPhone side (w/iAds) runs perfectly, but the iPad target gives me errors. It basically boils down to the iPad target not recognizing the iAd framework. I've tried weak linking but I still get iAd/iAd.h: No such file or dire...

Mail composer view opens in landscape mode when the app is launched in portrait faceup mode in ipad?

I have launched my app in portrait face up mode i have a button, on clicking it will open a mail composer view. For me the the mail composer opens in the landscape mode.But if i launch the app in portrait mode then the mail opens in the portrait mode only, i face this problem only in face up portrait mode only.Please help me out.Thanks. ...

do touch events not work with text-input elements in iPad Safari?

In iPad Safari, I have programmed a DIV's touch-events so that when you touch inside the DIV and hold your finger there for 500ms, the DIV's background color changes. When I try to move the code over to a text-input element (inside a fieldset), making it the touch-target instead of the DIV, the code doesn't work. The text-input becomes ...

what's the differences between [event allTouches] &[touches allObject]?

in uiresponder , - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; what's the difference between [event allTouches] and [touches allObject]? ...

How to use Qt library on iPhone

Hi everyone, I am develop a stock view app on iPad. I figure out that qtstalker app can run on Mac, with Qt library. Now I can run qtstalker on Mac, compile with XCode after qmake all the subdirectory of qtstalker. Now I would like to port this program to iPad. I know that I can not port completely without modification. How I can confi...

iPad UIWebView and different versions of XCode

I have an iPad app with a UIWebView which loads some local .rtfd.zip files. The problem is that if I compile the app with XCode 3.2.2, everything works fine, but if I compile it with newer versions of XCode, I just get a blank UIWebView. Here's how I load the files into the UIWebVIew: -(void)loadFile:(NSString*)file { NSString* resource...