ipad

NSPredicate causes EXC_BAD_ACCESS - but only for Release configuration on device

My app works great in the simulator under any configuration and in debug configuration on my device but it is crashing on a fetch request I am doing as soon as I create a NSPredicate. Here is the offending code: - (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText { //some fetch request code code ...

autofocus with keyboard in an ipad html5 site

I'm working on an html5 app that will be used on iPads in a kiosk mode. The first thing users must do is sign in, so when the homepage loads, I'd like the onscreen keyboard to popup with the focus in the first field. I've tried all the variants I can think of, including html5 <input autofocus> attribute calling document.getElementById...

JQuery getting location of element relative to window

Given an HTML DOM ID, how to get an element's position relative to the window in JavaScript/JQuery? This is not the same as relative to the document nor offset parent since the element may be inside an iframe or some other elements. I need to get the screen location of the element's rectangle (as in position and dimension) as it is cur...

UIView subview doesn't change orientation

I have a view controller which manages a view. I'm adding the my view controller subclass as a subview of the window swapping out another view. I'm running landscape mode on an iPad. The view apparently doesn't know that its in landscape mode. Its frame is confused. Is there something I can/should do to tell it that its in landscape,...

Implementing incremental search on iphone

I have alot of data stored locally (10000+ data records) (not decided on how yet - this is part of the question) How may I implement incremental search on this data (on a specific field)? How should I set up the data locally? XML? plist? sqlite? Should I use Core Data for access? ...

How to display date picker view in Ipad

hi, I have to display the date in iPad application, which is allowed to change by users. This date is displayed on UIButton in a UITableCellView in the detail view controller. When user click on the button I want to popup DatePicker. Usually in iPhone application we can display the DatePicker as popping up from the bottom of the screen...

Is there any way to know when Shift+Enter was pressed in iPad keyboard?

I would like to customize my input a little and I wonder if that is possible? For example I would like to add a Bullet to my textView when Enter is pressed and do the usual thing when Shift+Enter is pressed. ...

UIScrollView (paging mode) bounces only when there two or more pages?

Hello all I just have this strange question. I have a UIScrollView, and I have only one page in that scroll. The scroll is paging enabled and bounce enabled. Here is my code (in iPad) scroll = [[UIScrollView alloc] init]; scroll.pagingEnabled = YES; scroll.showsHorizontalScrollIndicator = NO; scroll.showsVerticalScrollIndicator = NO; ...

Frame property is not worked?

hi, I am using ipad Xib file which has 768*1024. but when I reduce its size(through coding as .frame property in viewdidload) in adding subview the width and height is reduced and shown but the object (like button etc) is in the same coordinate as it is in 768 * 1024? i have to do anything in autosizing etc?any tutorial step by step? ...

MPMoviePlayerController setFullscreen Problem

HI, I have a problem with a movie in fullscreen. What is happening: the user starts the movie over the movieControls and if the movie is finishing playing my code runs in a method where I remove the moviePlayer.view from its superview. But nothing happens. The Movie disappears but there is still a black view and the movieControls. If I ...

iPad use touches to display popover?

Hello stackoverflow, So I have been searching everywhere for a solution to this problem. I have a table view that displays a popover from a cell when the user selects it. However there is a bug but I can't figure out a solution. Basically once you scroll down off the first page of results, the popover always appears from the bottom o...

When changing UIWindow subviews, orientation is not set

If a view is added to the window, orientation is set as portrait even if the device is in landscape. If the view is added in the app delegate, application:didFinishLaunchingWithOptions: method, then it works correctly. But if the view is added later it does not. As an example, I have a routine to switch views. Simplest form is: - (void...

Odd behavior when showing UIPopoverController

Hello, In my iPad app, I save the state (visible/not visible) of a popover. So, during the launch of the app I initialize the UIPopoverController and tell it to show itself by using presentPopoverFromBarButtonItem:permittedArrowDirections:animated:. For the first argument (UIBarButtonItem), I use self.navigationItem.rightBarButtonItem. ...

iPhone Callout Pin resize view for detail display

Hi, When the user click on a annotation, I display the default callout view with a title, subtitle and a right info button. When the user click on the info button, I would like the callout view to resize itself and display a detail view controller. Basically, I would like the same effect with an animation as the Google Maps applicatio...

MPMoviePlayerViewController Hide Status Bar

Hello, I have an iPad application that creates and shows a video with an MPMoviePlayerViewController. Here's my code: MPMoviePlayerViewController *mpvc = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:URLEncode(uri)]]; [mpvc setModalTransitionStyle:UIModalTransitionStyleCrossDissolve]; [mpvc setWantsFullSc...

How to avoid "Unable to read symbols for..." warning playing local UIWebView HTML files?

Hello everyone, I have a UIWebView that loads local HTML files. In one of those files/pages I have a video file embedded (with <video> tag) that plays correctly in both simulator and iPad, but in iPad I get this annoying warning message: warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2...

Programatically remove selection in UIWebView

Is there a way to programatically remove the selection box of text which the user has selection in a UIWebView? ...

UIPopoverController display in wrong location

I am switching views within the window. The orientation is sometimes confused. Within one of the windows, when I attempt to display a popover which should be attached to a toolbar button, it is displayed in the location on the screen. If I physically change the orientation of the device, the popover is redraw in the correct location. If...

Changing iPad orientation, rotating statusbar, toolbars, but not the main view

Hello, I’m trying to set up an iPad test application, window-based, where I have a single view controller and a single view. When I rotate the iPad, I want the orientation of the toolbar to change, but not that of the view itself. For example, a sort of background view that you work in is fixed to the device, but the status bar and tool...

Is there a good HTML5 and JavaScript beginners tutorial for making iPad web apps?

i am planning to develop a web app for iPad. Basically its e- catalog app. so my requirement is Intuitive UI (animation etc..) Support all touch gestures So my question is is there any good source of examples or tutorials for getting started with HTML5 and JavaScript? Thank you so much. UPDATE i just found about "Sencha Touch" any...