ipad

CALayer Shadows disappearing during a UIView animation

So I'm currently testing out the UIView animations, and I noticed that the shadows rendered by CALayer (using [view.layer setShadowStuffHere]) disappear at the start of the animation and reappear at the end of the animation. Is there any way I can keep these shadows and have the shadows animate along with the UIView? I tried using shadow...

Popover shown from inputAccessoryView has wrong rotation

Does anybody know why a UIPopover or UIActionSheet presented from a UIBarButtonItem in a toolbar in the inputAccessoryView doesn't rotate along with all the other view controllers? The steps to reproduce this are: In an Xcode iPad project, add a UILabel editable text field in IB. Also in IB, add a UIToolbar with a UIBarButtonItem. In...

Get launch orientation of iPad app

Hi, In my iPad app, I need to run some layout code to set the proper layout depending on the orientation. By default, the layout is configured for the landscape orientation, so in the case that the app starts in portrait mode, I need to take extra action to configure the views properly for display in portrait. In my -application:didFin...

CGImageGetWidth returns different size then actual image

Hi i have a lot of image reading in my app and when I load the files i use CGImageGetWidth and CGImageGetHeight to get the sizes of the images. However this does not seem to return the right values all the time. For example if I have an image whose size is 114x14, these functions will return 126x22 or something random like that. The r...

How to make the UIPopOver origin at a same coordinate in the mainView even when I am moving its source button?

I have assigned the uipopover to a horizontally moving object. So when I keeps on moving the popover moves along with it. But I doesnt want it to move. Only want that bottom arrow to move and the popover origin should be same always. So it will appear like only the arrow is moving under it. Can anyone know how to get this? ...

best book / resources for learning iOS programming?

Which resources did you find useful for learning iOS programming? Books? website? videos? ...

how to increase a pdg page size in uiview in ipad

I am using a quartz library. I am drowing pdf page image using layer in uiview. but i thought while draw an image its does not fit to page in screen. I am giving my code as given below. -(void)loadPdf:(int)pageno{ myPageRef = CGPDFDocumentGetPage(myDocumentRef, pageno); CGRect pdfcropBox = CGPDFPageGetBoxRect(myPageRef,kCGPDFCropB...

Why does font-size CSS not work on iPad HTML emails?

I'm working on an HTML email and have been running to a problem on the mail client on the iPad only. It seems that setting inline CSS to "font-size: 12px" or any other size does not work on the mail app for iPad, despite the font-size displaying correctly in the Mail app for Mac OS X. Any ideas? ...

iPad Splitview template and modal views

I am trying to do a modal view inside the SplitView template. I can make one, but if you turn the device or just press on the modal view, it dissapears behind everything. How can I make a full screen modal view ? I have tried every modal style but the modal view will never stick around. ...

iPhone & iPad position: fixed bottom problem

http://t1.kameleo.ch/ if you scroll down you will find a login button under the footer. If you click it, the login appears on the bottom of the screen. I have done this with a negative fixed positioning relative to the bottom of the page. This works fine in every browser, expect for mobile devices such as the iPad and the iPhone. The l...

running code after opening modal ipad window

I am openning a modal window with the iPad SDK. [parent presentModalViewController:myPopup animated:YES]; The myPopup view has lots of building code in its viewDidLoad method and therefore there is a 3 or 4 section pause while myPopup's view is being built before the popup animation starts. What I want to do is only build the basics...

UISplitViewController - Dealing with memory warnings

Hi, I'm using a UISplitViewController where when the Master VC is loaded (UITableViewController) and a table cell is pressed, it creates the Detail VC (UIViewController with two UIWebViews): @implementation MasterVC - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIViewController *de...

iPad Keyboard comes on from wrong side

Hey everyone, I've been working on my first iPad based project which has proven a massive learning curve but I'm nearly there. I have a small issue left however. I've got my iPad to work in all orientations as dictated by Apple however they keyboard always comes on from the Portrait position unless the user rotates the device first. Doe...

IOS 3.2 MPMoviePlayerControler Controls do no disapear as advertised

Hello there, i was having problems to make the MPMoviePlayerController controls disappear. I tried to do it via: ... MPMoviePlayerController *mplayer; [mplayer setControlStyle:MPMovieControlStyleNone]; ... The problem is however that the controls appear for a brief second. I don't want to make my app look unprofessional so making th...

Custom iPad keyboard that looks like the system keyboards

I'm looking for a non-hackish solution for this, so basically -inputView. The part that I'm not sure about is how to make it look like the regular keyboards, from the background to the keys. I realize that I could photoshop an apple keyboard, but this seems like it is a little hackish, especially if apple (probably not but still possib...

iPad/iPhone TableVIew help pushing a new view...

Hi all, So we have recently started developing applications for the iPad for our company. Unfortunately none of us here have ever done any iPhone/iPad development so we are just kind of learning on the fly and winging it. Basically our problem is happening when we try to push a view onto the screen when a table row is clicked. Neithe...

Failure to write NSString to file on iPad

I'm using a text file to save the changes made by a user on a list (the reason that I'm doing this is so that I can upload the text file to a PC later on, and from there insert it into an Excel spreadsheet). I have 3 data structures: A NSMutableArray of keys, and a NSMutableDictionary who's key values are MSMutableArrays of NSStrings. ...

Why does the iPad stop auto-rotating when I start overlaying View Controllers?

I have a fairly hefty project, where I am loading a few view controllers, one after the other. First, a splash screen, followed by a menu system, and when the user clicks on the menu it goes through to an article view controller. Putting all these in with shouldAutorotate... set to YES for all rotations, this works fine. However, I have...

Web iPad app - how to differentiante between one- and two- finger scrolls.

Doing Web app for iPad clients, but need to recognize where user is doing one- and whe two-finger scrolls. Anybody know how to implement it? Any convenient jQuery plug in or something? Thanks. ...

How to draw over text, or highlight/underline something in a UIWebView?

I need to develop an application like an eBook reader, that loads PDF or HTML files. This part is easy. The part where I'd like some reference or example is the feature that allows the user to highlight/underline text with the finger, or draw circles or ellipses around the text. So you activate the "pencil" or another drawing tool, and "...