ipad

How to implement custom select feature in webview in ipad?

Hi, I am displaying a pdf or a pub file in web-view.I want to implement custom feature of selecting the text and be able to copy and paste it.I want to select the text by dragging the fingers over it.I want to implement the same way implemented in opera app .For bringing the cursor at that point is there any default method.I detecting t...

Can an universal application be rejected if it has no nib file?

hi i am creating an universal application(run on ipad and iphone).I want to know if i am not create nib file for iphone then is this possible that my application is rejected? ...

change universal application to ipad 3.2 application

hi i am creating an universal application now i want to change that application into ipad 3.2 application.How can i do that. ...

Getting the bounding selection rectangle of UIWebView

How do we get the on-screen location of a selection in UIWebView? That is whenever the user selects some text and the system displays the selection box, I want to know what is the bounding coordinate of the rectangle in screen (or view) units. The reason for this that I want to display a UIPopoverController that has an arrow pointing to...

avoiding UITapGestureRecognizer in button?

I am using UITapGestureRecognizer for double tap.When I double tab on UIButton , it works.but i want to avoid it? any built in method? ...

One thread changes BOOL to YES, another thread doesn't see change

I have a property declared as the following: @property(assign) BOOL die; One thread continuously checks if it should die by looking to see if that variable has changed to YES. When that die is set to YES (by a user clicking a button), the other thread that is grinding away still sees it as NO. I've put careful traces through the code ...

addsubview gives wrong output?

hi , i am using following code , but subview is added below the the parentview not ON parent view(self.view)..any help please? -(IBAction)okbutton:(id)sender { obj = [[imgViewNextController alloc] initWithNibName:@"green" bundle:nil]; obj.view.frame = self.view.frame; [UIView beginAnimations:@"curldown" co...

Battery power for NStimer

Hi, will creduce Battery Power?suppose If I use lot of timers in My App for Animation, will it affect My Battery Power? ...

highlight the text in webview when figer moves over the text in iphone?

I want to highlight the text when i drag the finger over the text in webview.I am able to detect the gesture and the coordinates at the point touched,But i am not able to highlight the text when i drag my finger over the text.Please help me out.Any sample codes would be more helpful. thanks. ...

UIWebView stringByEvaluatingJavaScriptFromString woes.

I have the following code in a view controller. "pageDisplay" is a UIWebView. When I run the app in simulator, the HTML page comes up as it appears before the JS runs. The element with id "myHeader", an <h1> tag, is unchanged. -(void) loadPageToView:(int)pageNumber{ NSString *path = [[NSBundle mainBundle] pathForResource:[NSString s...

Interface Builder Tab Order Typing

Hi I have noticed, in one of my views in an iPad app I am building the next button on the keyboard goes through all the UITextFields from left to right down the screen. Is it possible somehow to make it go top to bottom then right, top to bottom? So say I have to two long columns of text fields, I wan to go top to bottom not left to r...

iPhone/iPad application storage

Hello all, So as a learning exercise, I am trying to make a simple file browser that interfaces with a file storage mechanism. (Think dropbox or box.net) I want to add a feature that would allow the user to flag a file for local storage so they could view it when they were not connected to the network. Is there an apple API that allo...

JQTouch glitch on the iPad

I have a simple JavaScript function which replaces an image's source. document.getElementById("star1_"+i).src ="full_star.png"; i being an id attached to the name to differentiate different stars. It works fine in Safari, but once I add the site to home screen, this action stops working and the image source does not get replaced. Is t...

One UIViewController with many UIViews

Hi there, I'm creating an app with one UIViewController and many UIViews. I have MainViewController with a UIView underneath it that displays when loaded up and a few other UIViews all in the MainWindow.xib. How do I go about switching from one View to the next? Update: Thanks for the reply. I have added MainViewController to my app...

Image being loaded before app main method is called

I have an ipad app where I am seeing an image displaying briefly before the app starts (image is part of bundle). My guess is that this is some wrong wiring of a xib file, but even when I set a breakpoint at the beginning of the main method, the image still appears before this point is reached. Resetting the simulator does not help, an...

extracting reusable UI parts in cocoa touch - views vs controllers - how should it be done?

Let's say I am designing an iPad app that presents user a screen. The screen contains several "controls" that for the sake of this example can be simple labels with +/- signs that increment/decrement integer value presented by the label, making sure that the value doesnt exceed max number defined for each control (numerical up/down contr...

Tell video loaded in MPMoviePlayerViewController to stop playing

I've got a navigation view with a table view in it, listing some videos. When a row is selected, it loads MPMoviePlayerViewController and inits it with a video from file URL. When I go back to the table view, the movie is still playing. I tried getting the underlying MPMoviePlayerController and giving it a "pause" message in the viewDidD...

Truly bizarre data reported by Leaks using CoreData on iPad

Update 2: Apple responded to my bug report with "We believe this issue has been addressed in iOS 4.2 b1 (8C5091e). Please let us know whether or not you continue to experience this issue with the newly released software by updating this bug report." I guess this acknowledges that the issue is in their code, not mine. I'll update with res...

How to transfer pdf file from the mail box to our iphone app?

Hi, I want to transfer a PDF received in my inbox to my application. Once I received an email with a PDF attachment and on clicking the attachment it is asking for "view it" and shows the application which supports opening PDF, after clicking the app pdf is opened in that app.In my case I have created an app which will open a pdf file. ...

Compiling the same Xcode project for iPhone and iPad with different xib files

Hi! I would like to know if it's possible to compile the same Xcode project for both iPhone and iPad, automatically changing the xib file according to the platform. The project will contain both xib files. If this is possible, how can be done? Thanks ...