ipad

MPMoviePlayerController irreversibly switching to playbackState "paused"

Hi all, I'm using a single instance of MPMoviePlayerController to playback short clips (3-10 Minutes) via HTTP-Download in an iPad-Application. This usually works nicely, but in rare cases the following pattern occurs: A video starts playing (usually 1 up to 4 seconds of it) The playbackState switches to MPMoviePlaybackStatePaused. Th...

UIWebView,Modal ,get the event in the login form and maintain the session

HI Im implementing the UIWebView in my application where,we have login screen in the UIModalPresentationCurrentContext.in that the user will give the login details and enter /click the login button.but it takes the next page in the same modalPresentation.i need to close the modalpresentation.when the user presses the login button and h...

iPad Frame programmatically doesn't match with IB???

Hi everyone, I'm trying to draw 2 UITableViews programmatically on a landscape iPad. I drew it first in IB to get the values for x, y, width and height from inspector, then programmatically i create CGRects with this parameters, but the final result is not what I saw in IB. what units uses CGRecktMake to measure the frame? The UITable...

iPad - best way to store data

Hi, What is the best way to store big amount of data in your application on iPad? e.g. I want store lot of manuals in PDF (like 200-500MB) and use them? Will be (these data) synced during synchronization in iTunes? ...

iPad - UIViewController only kinda rotates

Alright, so here's the problem I'm having (it's a weird one.) I added a new UIViewController for the app I'm building. The first view controller works perfectly, orients correctly, etc. The second one orients horribly. This is how it looks if you start in landscape and then change orientation to portrait: And then, if you start in p...

How can you measure speed at which the user is moving their finger across the iPhone/iPad screen?

I'm diving into iPhone development and I'm trying to get my head around gestures and the touch events. How can I measure how fast the user is moving their finger across the screen of an iOS device using the touche events (touchesBegan, touchesMoved, etc)? Thanks so much in advance for your help! ...

Where can I find info on using a Universal App on iPhone that uses UISplitViewController ?

Hi, I've followed all posts that I've found about creating a Universal App that uses a UISplitViewController and runs fine on iPhone (without it, of course) and in iPad. My Targeted Device Familiy is => iPhone/iPad iPhone OS Deployment => iPhone OS 3.0 Base SDK => iPhone Device 3.2 My UIKit.framework is 'weak ref' in my Target General...

How do you load a local jpeg or png image file into an iPhone app?

Or I should ask why is it so difficult for me? The answer is probably that I'm new to iPhone development and I'm trying to ditch my old methods and step into the new platform of the future. From start to finish, I have a few questions about this process... If I create a .png image, where does it go in my project's directory (i.e. my ...

Safari iPad : prevent zoom on double-tap

I'm creating a site on Safari for iPad. I need to prevent the zoom on double-tapping event but I have two problems: a double tap doesn’t generate any events, so I can't use "event.preventDefault();" I need to do this only when some conditions are fulfilled, so I can't use the tag "<meta name = "viewport" content = "user-scalable = no">...

How can I sense the user is holding down their finger on the screen without moving?

The best method I can think of is to start a timer in the touchesBegan event method. If the timer expires before the touchesEnded event arrives, then you know the user is holding down on the screen. If the touchesMoved event is called, then simply reset the timer so as to only detect holding down without movement. Is there any functi...

Erase some part of a UIImageView (like a rubber do)

Hi there. I'm building an iphone View controller that display two stacked images (on on top of the other). What i need to do is to erase some parts of the image on top (making it transparent while i'm moving my finger on it). I'll be fine with all the application logic (dragging, saving) but i need to know how i should implement that fe...

creating a mutable array I can access anywhere in my view controller on iphone?

I am loading json into a list of objects I am adding to a NSMutableArray which seems to be working fine except for the fact that I can't seem to keep the array around to access later. This is my .h: @interface ClientController : UITableViewController { NSMutableData *responseData; NSMutableArray *ClientList; } @property (nonat...

add Toolbar above UITableView for use in UISplitViewController detail view

I want to use a table view as the detail pane in my UISplitViewController. How do I put the toolbar at the top? I want to be able to add bar button items in the same way as my non-table detail views. Thanks. ...

Local Notifications Custom Time Interval

I'm trying to implement local notifications for a calendar-esque application, and I've hit a barrier with reminder intervals. Local notifications seem to only take NSCalendarUnit constants as repeat intervals ( see http://developer.apple.com/iphone/library/documentation/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html#...

iphone UITabBarController question

Hello - I have a tab bar in may app that controls 5 different views. To ease memory issues, I would like to release a large image when leaving the tab then reload it when that tab is selected again. Any ideas? I am looking for a delegate method that would activate when a user selects a different tab ...

iphone - not leaking

What's the right way to do this? I have an array that I will use on several methods. I will add objects to it, get values, replace values, etc. Today I do this: I declare it on .h, using something like NSMutableArray *myArray; as soon as the application starts, I declare it on .m doing something like myArray = [[[NSArray alloc] in...

how to develop an email app on IPad?

I'm a new guy on IPad developing. I want to develop an app for sending and receiving Email. But I can not find the methods to receive mails from Email-box. Has anyone done this before? Any clue will be grateful! Thanks for your reply! ...

Populate UILabel text without linking an IBOutlet

I want to fill several UILabels, on different UIViews created with IB, with the same text. Now I'm doing it connecting each label with an IBOutlet and filling the text programmatically with a constant string defined on a constants file. What I want is to avoid the connection with an IBOutlet so I can link the desired string token in IB...

How do I launch an iOS app upon startup?

Hello All, I am working on a project where the iPad will be used for a specific purpose, and only run one app. When the device starts up, I want my app to run, and I want to override the home button so that it does not quit the app (like the iPhone/ iPod demos in the store). I have seen bits and pieces of this functionality, but am un...

What is the style of UIView subclass used in this popover in Safari on iPad?

For the iPad app I am writing I want a style of popover that is identical to the one used in Safari when you tap on the "+" UITabbarItem to add a bookmark or add the current Web page to the Home screen. Here is a screenshot of the popover I am refering to: Can someone please identify the UIView subclass or subclasses that make up the ...