ipad

iPhone Mobile Safari: Force keyboard open

This is an HTML / CSS / JS (jQuery) iPad app. I've got a button, that slides down an input form. I'd like to focus the user on the input, and then launch the keyboard. This is what I'm working with, but doesn't work: $('#myFormField').focus(); This does indeed focus the input, but fails to launch the keyboard. Is it just not possibl...

How to make things dragable with JS on iPad, iPhone?

Hey Guys, you know, i'm searching for a way to move items via mouse-dragging (as we know from several slider plugins) handled by JS which will work on iPhone and iPad Browser too? hope anybody can help me. thanks a lot! ...

UIViewController Auto Rotates on Iphone but not Ipad

Hi all, I have an IPad auto rotation problem. I have a UINavigationController, managing a stack of UIViewControllers. They all implement the method - -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } At the bottom of th...

Assigning touch events to elements within canvas - iPad

I'm creating a web app for the iPad and I'm trying to assign a touch event to an element within canvas. I have it set up like this: function initialize() { touch_element = new Image(); touch_element.src = 'img/image.png' touch_element.onload = function(){ canvas.drawImage(football, 50, 50, 184, 120); touch_e...

Rescaling a UITableView for the iPad?

Recently, I have begun porting my iPhone app to the iPad and I have a view with a UITableView subview. Is there any way to rescale the table? The autoresizing masks don't blow up the font and I basically just want a rescaled, crisp, larger version of the table for the iPad. Is there an easy way to go about doing this? ...

iPad/iPhone4 Universal Build

I would like to make a universal build that will run on the iPad and iPhone4. Basically this is the 'HD' build of a game which will run on the higher resolution display devices. As far as I know, the iPad and iPhone4 both run armv7, so choosing armv6 and armv7 doesn't seem to make sense. Although, this is what Apple tells you to do. ...

Why can I not use UIButton to trigger a dismissModalViewController?

I currently have three modalViewControllers and each have their own ways to dismiss. For Two of them, I have to use UILabel and then have using the touchesEnded: method to determine whether the release was within the proper area - then call to dismiss the modalViewController. However, I have one where I can just use a UIButton and it w...

How to set margins (padding) in UITextView?

I have a UITextView for text editing. By default, it has a small margin around the text. I want to increase that margin by a few pixels. The contentInset property gives me margins, but it does not change the text "wrap width". The text is wrapped at the same width, and the extra "margin" just causes the view to scroll horizontally. ...

How do I draw a simple ellipse using CoreGraphics on the iPhone (specifically iPad)?

Just wondering how to draw an ellipse using CoreGraphics. ...

Duplicate symbol issues

During a refactor of an iOS project, I ran into this bear of a bug. During the linking phase, I get this message: ld: duplicate symbol _OBJC_IVAR_$_TinCanViewController.currentViewController in /path/to/TinCanViewController-E98A666B7AF2673A.o and /path/to/TinCanViewController-E98A666B7AF2673A.o As far as I can tell, it looks like i...

Passing argument 1 of 'setQuantity:' makes pointer from integer without a cast

I have a UILabel that I need to get the value from as an integer so I can save it to my Core Data object but I keep getting this error and failure at this point. PurchaseOrderItem *newPOItem = (PurchaseOrderItem*) [NSEntityDescription insertNewObjectForEntityForName:@"PurchaseOrderItem" inManagedObjectContext:managedObjectContext]; ...

iPhone - Using a define

I am a newbie on iPhone development. I have declared a variable on my .m file like this #define myFloat 60.0f Now when I try to use this variable like CGRect myFrame = CGRectMake(0.0f, 0.0f, myFloat, myFloat); it says myFloat is undeclared! How do I do that? thanks. ...

updating fetched object results in 'unrecognized selector sent to instance' error

Trying to update an fetched object and getting 'unrecognized selector sent to instance' error whenever I try and set any property on the object, here is my code: NSFetchRequest *request = [[NSFetchRequest alloc]init]; NSEntityDescription *entities = [NSEntityDescription entityForName:@"PurchaseOrderItem" inManagedObjectContext:managedOb...

Does NSURLConnection Block the Main/UI Thread

I am downloading images in table view cells as they scroll onto the screen. For UX reasons, I start downloading the images in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath. I do not wait until the table view is done scrolling. When the table view cell is set, I start downloading i...

When I play streaming media with my iPad,the screen is black but it sounds normal

I find this in device's console: Tue Jul 13 13:21:28 sumomo-bunketsumigikakkos-iPad com.apple.mediaserverd[83] : vxdDec - Frame# 1395, DecodeFrame failed with error: 305 Why did this happen? ...

How can we check which class an object belongs to?

I have a lot of object of different classes in a scrollView. While doing some operations, I want to print the the parent class of each objects. How can I do it? ...

MPMoviePlayerController, disallow fullscreen but allow navigation through clip?

I have a video in my iPad app, but I dont want it to be able to go to fullscreen. However I do potentially want the user to be able to navigate to the part of the video that they want to see. As far as I can tell there are only three options for the controls that you give the user: None, Embedded, or Fullscreen. None gives the user no ...

How to use AVAudioPlayer to play a playlist in iPhone/iPad

Please I know how to play a sound in AVAudioPlayer but I would like to know how to give it a list of on-disk files to play one after the other (play list) Anyone has any idea? ...

ipad: how to move a sprite by sliding it and continue to go according to sliding speed

I have a sprite(image of a ball) I can move it using touch and move. I have also identified the rate of change of location(x-axis,y-axis) of that sprite depending on sliding period. Now I need to continue that sprite to go according to its speed and direction. Here is my code- Touch Event - (BOOL)ccTouchBegan:(UITouch *)touch withEven...

Handling an external screen on the iPad

Ok, I think its possible I've misunderstood the correct way to implement an external screen on the iPad and it is causing me a lot of headaches. Since this is a long post, what I'm trying to do is create and send a view to an external screen over VGA, and remove the screen once I'm done with it. I'm having retain count issues so can't ge...