ipad

Getting Tap/Touch Position when selecting a TableView cell

Hi, hope to get some help here because this is something that really makes me mad... I have a view with a tableView, and when I tap a cell I want to present a popOver window pointing the arrow to the cell I tapped. the things that I think I need is: 1- the position of the cell in the screen (not in the view, because on large tables the...

iPhone SDK 3.2 Universal App issue with .xib files

Hello! So I am finding this process of universalizing my iPhone app to be a big headache! Am I alone in this? I sure hope not. Anyway, my question is regarding the .xib files for my universal application. I had my iPhone OS 3.1 running app all ready to make the universal switch. I went up to Project/Upgrade Current Target for iPad/Univ...

iPad title bars. Navbars or toolbars?

I see a bunch of apps for iPad with really cool title bars. These seem to be a combination of a navigation bar and a toolbar. They usually have a back button and a title as well as men other buttons. And a navbar only supports a left item, a right item and and title view. And the toolbar does not really support back buttons or titles. ...

Setting The Wallpaper On An IPad

I think there is no way to set the lock screen wallpaper on the iPhone programmatically (with ref to this question), but with the 3.2 SDK and the ability to set the wallpaper on the home screen on the iPad, does the SDK allow this to be done via APIs now? I looked up the developer reference, but i could not find anything useful. ...

Selection on table view causes parent view to change

Hi there, I'm working on an iPad app and here's my scenario: I have a view which contains a table view inside of it. When the user selects an item on the table view, I would like the parent's view to change in a navigational manner. For those of you that have an iPad, this would be akin to the "Settings" app. But I guess in the "Sett...

In iPhone OS, what UTI represents a plain ol' text file?

I'm attempting to make use of the UIDocumentInteractionController mechanism in iPhone OS 3.2, but I'm struggling to figure out exactly how to construct a UTI that it likes. I've gotten as far as attempting to set public.plain-text, but it's hard to test whether this is the correct UTI for a plain text document, since I can't tell whethe...

How does one populate the results of an UIImagePicker with some "default" images (if the user has none of their own to choose from)

How does one populate the results of an UIImagePickerController with some "default" images. In this case I have made a photo manipulation app where the user selects an image from their library, but I'd like to give them sample images without actually saving them to their libraries. Is there some way to manually inject my default images i...

Using PDF in iPad

Has Anyone tried using PDF in iPad Application, using CGPDf functions. I have used this in iPhone and it works perfectly , but when i use the same code in iPad , the Page are Shrunk in size, after a try outs i set the Scale as follows CGContextScaleCTM(context,1.85, -1.80); This time the it fits the screen perfectly , but that was jus...

dismissModalViewControllerAnimated makes my app crash :(

I'm creating an iPad app, and I have two classes: NWRootViewController : UITableViewController and UINewFeedViewController : UIViewController. In NWRootViewController I have an UIBarButtonItem, which, when tapped, pops up a modal view controller called NWNewFeedViewController: // THIS CODE IS IN NWROOTVIEWCONTROLLER.M // New Feed -(IBAc...

How can we change views in a UISplitViewController other than using the popover and selecting?

I have done a sample app with UISplitViewController studying the example they have provided. I have created three detailviews and have configured them to change by the default means. Either using the left/master view in landscape AND using the popover in the portrait orientation. Now I am trying to move to another view(previous/next) fr...

Localizing iPad applications

I am creating an iPad application, and I have a Localizable.strings file, which is in English and Dutch: English.lproj/Localizable.strings "failed to copy file" = "Failed to copy file"; "failed to copy defaultFeeds.plist" = "Failed to copy defaultFeeds.plist form the application's bundle to the device's documents directory for this app...

Issue with UITextView in an animation block

I'm having an issue with a UITextView inside another UIView whose frame is manipulated in an animation block when the keyboard displays. During the animation block the UIView scales beautifully and as expected, but the UITextView jumps out of it's superview(the UIView being animated) at the start of the animation. By the end of the ani...

First Application on IPad: where to set the button event?

Hi, I have 4 years experience on DotNet, not much. I now learned developing for IPad. I made a new project and opened the MainWindow.xib by double click in the interface builder. Not I put there a label, a textbox and a button. But how to make the button event? ...

UIButton looks good in InterfaceBuilder, but not on iPad sim or device

In InterfaceBuilder, I'm creating the simplest possible UIButton, by simply dragging from the Library panel into my view. After doing that, I get a nice UIButton that looks like this: When I preview in the simulator, or view on my iPad device, my UIButton has a line underneath it, like this: Anyone else have this problem? Anyone ha...

Determine UIInterfaceOrientation on iPad

I don't need to specify the orientation in this case, I just need to detect it, but I'm having trouble. I have conditional code that should only work in portrait, and if the device is in landscape I need to do something else. Since the deviceOrientation is not necessarily the same as the interfaceOrientation, I can't come up with a way...

GL_TEXTURE_RECTANGLE_ARB on iPhone/iPad

I can't find any support for GL_TEXTURE_RECTANGLE_ARB in OpenGL ES. Is there any extension specific for iPhone or iPad which can render arbitrary sprites (non power of two)? Thanks for help. ...

How can I render an in-memory UIViewController's view Landscape?

I'm trying to render an in-memory (but not in hierarchy, yet) UIViewController's view into an in-memory image buffer so I can do some interesting transition animations. However, when I render the UIViewController's view into that buffer, it is always rendering as though the controller is in Portrait orientation, no matter the orientation...

iPhone & iPad versions of same app?

I have an iPhone app and would like to create iPad version of it. What is the best way to setup the project when you want an iPhone and iPad version of the app? I don't see that I'm able to use the same code base since the iPad version will have features in it that the iPhone version doesn't. It seems as though maintenance is going to...

Get position of the "viewport" in mobile safari?

Is there a way to determine the position of the "viewport" in mobile safari on a web page? Like x, y, w, h pixel positions of what the phone is currently seeing on the page? ...

What's a better way to display a handle for resizing a view on iPhone / iPad?

I want to display a handle at the corners of a UIView that can be used to resize the view. How can I display the handles floating on the top of everything else and still have a connection to and be in sync with a view? The solution I implemented before looks like this: I put the view into another view that shows the handles on top of...