ipad

Device-Specific Resources in iPhone

According to the iOS Reference Library: In iOS 4.0 and later, it is possible to mark individual resource files as usable only on a specific type of device. Does this mean that if you're creating an Universal app for 3.X devices, and the 3.2 iPad in particular, you can't use device-specific resources with the ~ipad and ~iphone...

xCode / declaring Static Methods in class

Anyone know how I can declare a static method for an xcode class and then use it in my project? I want to create a Common.h class and then do something like this in one of .m file Common.MyStaticMethod(); I dont want to have to instantiate and instance of Common ...

ViewDidAppear/ViewWillAppear not being called

I have a ViewController that adds to other subviews which have subclassed uiviewControllers so Its like this: mainViewController | v---------v subVC1 subVC2 And neither subVC1 or subVC2 have the viewDidAppear/viewWillAppear fired on them? The main view controller is creating in the app delegate and it view added there as w...

Maintain frame of UIView after UIGestures

I'm working on an iPad app that will use UIGestureRecognizers to allow the user to pan, scale and rotate objects (subclass of UIView) on the screen. I understand that the [UIView frame] property isn't valid after a transform is done, so I'm trying to take the values of my UIGestureRecognizers and keep the "frame" myself. Here's the cod...

#if __IPHONE_4_0 on iPad?

Will this check work on the iPad as well as iPhone? Or is there something else I need to check for iPad OS version. Or is this not the way to check what os the application is being built for. #if __IPHONE_4_0 // Do stuff #elif __IPHONE_3_0 // Do 3.0 stuff #endif ...

Creating formatted Lines of Text

I need to be able to read text that has been tagged using XML for formatting and display it on the iPad formatted. The one trick is that I need to support footnotes. I need to be able to read source, parse source, create attributed string for source, create lines. Then I need to write lines to either the text or footnotes until the scre...

Best way to load content from web

I have an app which displays 10 images and each image is associated with a button and a URL link. I would like to release this app, but be able to update the images and links via the web without needing to do an update to the app. I know that I can pull images from the web like so: NSURL *url = [NSURL URLWithString: @"http://example.co...

iPhone/iPad - Facebook api for universal app

I know that facebook api works on iphone. I want to port my iphone app which has facebook api to Universal app so that it works on iPad as well. How can I achieve it? Is there any facebook api for universal apps or do I've to use two api's one for iphone and one for ipad. If I've to use them separately, how can I compile and build my app...

remove shadow when presenting UIView modal UIModalPresentationPageSheet - iPad

I'm presenting a modal view with size 700x400 in an iPad app. I've set the view's background color with an alpha = 0.0, so its transparent. However, when I present the modal, there's a shadow that is about the size of an usual view (i.e 1004x768). How can I get rid of that background? ...

iPad (very) simple drawing

I'm trying to implement a very simple drawing view in my app. This is only a small part of my app but it's turning into a real hassle. This is what I have so far, but all it's displaying right now is morse code like dots and lines. - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor...

Send touches on iOS device to another UIScreen (external display)

Is there a simple way to send touches on an iOS device (e.g. iPad) to another UIScreen which is rendered on an external display? For example, the iPad shows a blank screen and the app is shown on the external screen. If I touch down on the iPad approximately where the button (displayed on the other UIScreen) would be, it sends the coord...

iPad and memory problems

Hi, is it possible, that when the iPad application is forcibly closed/killed by the iOS becuase of 'out of memory situation', the memory the application allocated is not 100% released? I think that the memory allocated directly by the client is released - there is even HW support for this, but we were observing that if the application i...

Using Quicktime chapters/bookmarks in MediaPlayer framework on the ipad

Hi, I am using the MediaPlayer Framework on the ipad to play movies, specifically the MPMoviePlayerController class. The Quicktime movie I am loading has a chapter track with bookmarks. How can I access these bookmarks in my app? Thanks! ...

iPad slidable panel controll like twitter

Hi All, What would be the mechanism behind twitter iPad application? I feel its having split viewcontroller, viewcontrollers with animation and gesture controls, or there may be scrollviews for endless scrolling. How can I develop same UI for my application? Thanks ...

ipad application or web?

I have a question regarding development for Ipad. Is there an advantage to develop an application with iOS over using a regular development for web application that can be opened in the browser? ...

popToRootViewController - notification

I have a tabBar controller. Tapping the active tab, by default, calls popToRootViewController on that tab's navigation controller. That is what I want, but I also need to do some customization when this happens. The view controller in question has a nav controller, but is not a subclass of UINavigationController. How can I listen for whe...

full text search on multiple columns with Coredata on ipad

i use core data in my app. i have 4 columns(id,name,description,specs). I want to full text search across all these columns. Is it possible with core data? If anybody can provide me reference to tutorial or code snippets. Thanks ...

Running activity indicator NOW

I want to start an activity indicator before going to disk I/O. How do I start the indicator NOW, instead of waiting for the next display loop cycle? Or how do I force the display loop before beginning the disk I/O? Dan ...

Orientation is being incorrectly changed in an iPad Application

I have an application that starts with a Login screen (UIViewController) and then once the user completes the login, the rest of the application is managed by a SplitViewController. The problem I'm having is that when the SplitViewController is first displayed, it overwrites the current screen orientation, it forces portrait mode even if...

How to release the elements of an NSArray, loaded by arrayWithContentsOfURL ?

I am too dumb to know the answer to this one - does anyone know the answer definitively? NSMutableArray *happyDictionaryEntries; @property (nonatomic, retain) NSMutableArray *happyDictionaryEntries; -(void) getStuffFromServer { .. self.happyDictionaryEntries = [NSMutableArray arrayWithContentsOfURL:[NSURL URLWithString:aUrl]]; } ...