ipad

MKMapView memory usage grows out of control with setRegion: calls

Hi, I have a single MKMapView instance that I have programmatically added to a UIView. As part of the UI, the user can cycle through a list of addresses and the map view is updated to show the correct map for each address as the user goes through them. I create the map view once, and simply change what it displays with setRegion:animate...

MFMailComposeViewController Orientation in ipad

Hello, i am implemented MFMailComposeViewController in ipad application. It works great in Portrait mode. When i rotate it to Landscape mode its not completely fill the page. Is it possible to show the mail composer without any space. ...

Loading multiple images in sequence on iPad

I'm working on an application that talks home to a server and retrieves some data with image URL's embedded in it. I want to display those images on the view, and am getting them like so: UIImageView *ivAvatar = [[UIImageView alloc] initWithImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.avatarUrl]]...

iPhone universal app. MoviePlayer.framwork problem.

I have application based on 3.0 iPhone OS SDK One of tasks is playing video (I use MPMoviePlayerController for this task) Now I try to make universal app working on both 3.0 and 3.2 OS I did all steps described in apple documentation: Upgrade Current Target for iPad; make run-time checking for symbols using [[UIDevice currentDevice] res...

UITableView less than full screen from code?

I have a number of views that use UITableView. (I use UIViewController and implement UITableViewDelegate and UITableViewDataSource interfaces.) I'm having trouble creating a tableview that leaves room at the top for a toolbar. How to I size and layout the Tableview so that it is less than full screen? Is this an AutoResizing mask prob...

How to modify XML on Objective-C?

Hi, I'm working on a project for the iPad, I need to read and write to an xml file, which is also used by the counter part of the application in windows. The problem that I have is that I've been looking around but I haven't found a way to modify an element or attribute in an xml, without having to build the whole xml again. I saw thi...

Javascript style objects in Objective-C

Background: I use a ton of NSDictionary objects in my iPhone and iPad code. I'm sick of the verbose way of getting/setting keys to these state dictionaries. So a little bit of an experiment: I just created a class I call Remap. Remap will take any arbitrary set[VariableName]:(NSObject *) obj selector and forward that message to a funct...

HTML5 video on iPad

I have a dynamic video gallery and it works great on a computer. When moving to an iPad, the video starts loading and it shows the cannot play icon. Instead of this I'd rather the video not show until it's ready to play. I have tried to add events listeners for "canplaythrough" and "canplay" and when they occur for the video to fade i...

How to keep iPhone app out of iPad store?

I have an iPhone app that I have started to turn into a universal app, however the process is not complete and I want to release an update to the iPhone version. I know that you can specify device capabilities in the Info.plist file to restrict your app to certain devices, but how can I do this to prevent the unfinished universal versio...

Does UIGestureRecognizer work on a UIWebView?

I am attempting to get a UIGestureRecognizer working with a UIWebview which is a subview of a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires, but when numberOfTouchesRequired is set to one the selector doesn't fire. Here is my code: UITapGestureRecognizer *tap1 = [[UITapGestureReco...

What UIKit elements can be used to replicate the App Store/iTunes Store paged grid?

I'm new to Cocoa Touch, so this might be pretty easy, but I can't seem to figure out what UIKit elements were used to create a grid like this? Is this simply a UITableView with a pagination controller? If so, how'd they style it like this? Thanks! PS: I'm not allowed to post images yet, i guess. hopefully the link works... http://img...

iPhone. Detect another finger touch during one finger is touching on the screen

Is it possible to detect another finger touch during one finger is touching on the screen? I need to deal with the gesture of the 2nd finger during which I don't want my first finger to leave the screen. What should be the general logic in the code to handle this? Thanks. ...

Strange problem with UIDocumentInteractionController

I don't know what wrong with this code but everytime when I run the app, after the Menu is shown, the app crash. NSString * path = [[NSBundle mainBundle] pathForResource:@"tung" ofType:@"doc"]; UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:p...

NavigationBar from UINavigationController not positioned correctly

So, my iPad program has a pseudo-split view controller (one that I implemented, not base SDK one), and was working correctly a while ago. It has the basic layout (UINavController for master, content view controller for detail on right), but I have it so the master view doesn't disappear when rotated into portrait view. Recently, I added...

Hi, I wanna know how to release game UIView and go back to the root menu

Hi , for example , when you playing game , you are play in the game UIView and when you exit your game and return to the game root menu, there're a 'exit' button on the game UIView I wanna click this button to release self view and go back to the main menu how to do this? ...

uisearchbar transparent background view

In UISearchBar default a background view should present. How to hide that. I need only the search textview part, in uisearchbar ...

iPhone OS 3.2; PDF rendering; User Interaction

Hello! I'd need to create a iPad-app which would be rendering multiple PDF-Files (one file contains one page). Each page should be scrollable, zoomable and if the user taps on a part of the PDF a website or photo gallery should popup. Currently i think i could do that either with: A. UIWebView Displays the pdf's nicely, scrolling and...

Thumbnail slider in toolbar like iPad Photos app

I would like to put thumbnails in the toolbar like the Photos app. Like the screenshot on the left: Is there is a built-in control to do this, or do I have to implement it from scratch? If the answer is from scratch, any tips? ...

Keyboard cannot display when using UIAlertView on top of a modal view

1.; [m_splitViewController presentModalViewController:m_ModalViewController animated:NO];` 2.; UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"login" message:strUserName delegate: self cancelButtonTitle:@"Cancel" otherButtonTitles:NSLocalizedString: @"Yes"]; [alert addTextField...

iPhone OS Memory Warnings. What Do The Different Levels Mean?

Regarding the black art of managing memory on iPhone OS devices: what do the different levels of memory warning mean. Level 1? Level 2? Does the dial go to 11? Context: After an extensive memory stress testing period - including running my iPad app with the iPod music player app playing, I am inclined to ignore the random yet infrequent...