ipad

How to make UIButton clickable when it's out of bounds.

Hi guys, I set the clipsToBounds property of my UIView to NO, then I created a UIButton half in the bounds, and half out of the bounds. I found that only the part in the bounds is clickable. How can I make the whole button clickable? Any help would be appreciated. Thanks in advance. ...

Can I obtain a valid CGContext for drawing with just a @synthesize UIView dropped into a view controller view

Thank you in advance for any help, I am building a multipage iPad app,and each page has specialized calculations, they all work great, but i would like to make the user experience better with some simple line drawings that represent the calculations, I am comfortable with the drawing once i get a valid CGcontext working, and this is wher...

How do I create an app for both iPads and iPhones?

After reading several posts on this matter, I thought I was all clear about my options, until I actually submitted the update to Apple... To my understanding, there are two main approaches for developing for both iPad and iPhone: Create two targets within the same project, one for iPad and iPhone each. Then push both of them to App S...

how to do an adblock for UIWebview?

Although apple banned flash which disabled a lot of ad. I still like a adblock like functionality for browser. I noticed that adblock do so by checking all load request's url. Is that possible with UIWebview? Any suggestions are well come Thanks ...

iPad UITextField won't return

Hi, I have an UITextField inside an UITableViewCell. I want the textField to return but something goes wrong. Here's my code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == 0) { if (indexPath.row == 0) { cell.selectionStyle = UITable...

ipad splitview open modal

Hi I want to open an modal ViewController from my ipad splitview application. It works fine when I do it from the app-delegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after app launch. // Add the split view controller's view...

Why UISearchBar and its scope buttons are shown in one line?

Hi, I have seen Apple's example "TableSearch" that when touched its scope buttons come below the search bar. http://developer.apple.com/iphone/library/samplecode/TableSearch/Introduction/Intro.html But when I make my own it looks good at first but when I touch it looks like ugly, scope buttons and search bar are shown in the same line...

.epub association

I noticed if I open an .epub link in safari browser of my I pad it is opened in good reader. When I deleted the good reader, it said cannot open. How is this association done ? Can I associate .epub link in iBook or stanza or kindle ? Can this association be done programmatically ? Can my developed app be associated ? ...

iPad custom URL help

Hello, So I am trying to probe the UIApplicationLaunchOptionsURLKey to see if my application was launched by another app. For example, what if I want to do something like this: if (UIApplicationLaunchOptionsURLKey != NULL) { [window addSubview:launchViewController.view]; } else { [window addSubview:viewController.view]; } In...

Why Safari on iPad doesn't show large jpeg enclosed in IMG tag?

Last time I saw someone asks why Safari on iPad doesn't show some 1920x1440 jpeg with real size & I solved that puzzle. You have to use a progressive-encoded jpeg. However, I find another different problem. Say, demo.jpg is a progressive-encoded jpeg with 2000x3000 & I upload it to my website. I then access it via url ...demo.jpg, Safar...

Replace resource png's directly on iPhone (iPad)

I have some png's that are now resources in XCode. I would like to replace the with other png's on the device after deployment. How do I do that, while still being able to work with them in XCode? I thing it should be "Documents" "Library" or "Settings" folder, but it is not so clear how to create them in xCode. (This is an internal a...

How to get asian fonts working on an iPad?

I have a PDF file with a font reference to STSong-Light which is not available on the iOS. Therefor I can not display the correct characters defined with that font. I took the STSong font file mentioned on Apples KB: http://support.apple.com/kb/ht1538 … and put it into my project and added it to the plist. The text is now no longer b...

Landscape iPad shows view in Portrait and then quickly rotates it to Landscape

I have a little issue with an application I'm building for the iPad. I have several views that are fixed in portrait mode, and others that can work in either portrait or landscape mode. Everything is fine - I have shouldAutorotateToInterfaceOrientation: giving me the correct results, and views do eventually end up in the right orientat...

presentModalViewController doesn't rotate properly in iPhone / iPad

Hi all... I have a viewController called MainViewController, which has a UIButton. When tapped, this button loads another viewController, called ModalSelector like this: - (IBAction)showModalSelector:(id)sender { ModalSelector *modal = [[ModalSelector alloc] initWithNibName:@"modalSelector" bundle:nil]; modal.modalPresentationSty...

Iphone/iPad local asp files?

I already know that you can load local html files in a UIWebView, but could you do the same thing with asp files? And could you use AJAX on the iPhone? ...

Show a busy cursor spinner on the iPad?

How do I show/remove a busy cursor spinner on the iPad when doing a long operation? ...

Knowing when -viewWillAppear triggered but -viewWillDisappear hasn't

Is there a way to know that a view controller is somewhere in the view controller lifecycle between -viewWillAppear and -viewWillDisappear? I ask because I want to be damned sure that a method isn't fired when my view is either not on screen, or is about to disappear from the screen. When the view is about to disappear from the screen, ...

"Partial" web view in iPhone/iPad app

How can I do not full screen, but partial Web View in my iPhone/iPad app? I need it to be in the center of the screen, but having other controls (native app) on top/bottom/left and right. Thank you! ...

iPad: Compiler directive I can use to distinguish between Simulator and Device?

I want to have a compiler (pre-compiler) directive in my objective-C class to distinguish between the simulator build and the device build. #if SIMULATOR call testModule(); #else call productionModule(); #endif Is there such a #directive in X-code for the iPad/iPhone? ...

Having a UINavigation in a UISplitView

So I was looking at this app http://itunes.apple.com/us/app/pageonce-personal-finance/id285056092?mt=8 (see iPad screenshots) and it appears that they have a uinavigation controller within the Details view of the UISplitView. When I tried to make a UINavigation controller in my Details View, the navigation bar overlaps with the UISplitVi...