I have a div with text inside of it. I want the text to be selectable (for copy/paste) on the iPad. At the same time I want to be able to handle an onclick event.
This seems not to go well together. As soon the div is clickable it is not selectable.
Does anybody know a way around this?
<html>
<head>
<script>
function run() {
...
Hi all,
I have a UILabel and when the value change in the label, I want to highlight it's background color from another color and exists for 2,3 seconds and get back to normal color.
Anyone have an idea how to do this?
...
I am a complete novice to iPhone/iPad development, but I have OOP experience in other languages. I apologize in advance if this question is rather vague.
What I really want to know is this:
My app idea needs to work in a single view where the view is a scrollable area that is a fixed height (bigger than the viewport). Various differe...
I've been using that kind of methods on and off but never really understood how they behaved.
Every time I try to use them, I find myself poking in the dark as I try different aspect and it never seem to do what I expect it to.
For the sake of argument, I'm trying to convert the frame I get from UIKeyboard's notification.
In landscape...
I am very new to Objective C and decided to jump in the deep end.
I need to create an narrated ebook app that highlights words as they are spoken.
I have all the pieces for my program, I think. I just need to clarify my overall logic before I start totally down the wrong path.
Here is my thought process:
1.Use NSstring to read the ...
How do I go about opening a view in the way that you see in this example?
Thanks!
Dave
...
Hi,
I'm having problems getting my iPad app to detect its interfaceOrientation in the first UIViewController I initialize (in code). In fact, if I trace for application.statusBarOrientation, that too returns 1 (UIInterfaceOrientationPortrait) even if I launched in landscape.
If I trace self.interfaceOrientation in my first UIViewContro...
I want to implement a table which is similar to the tv guide that you see in Yahoo app on iPad. The user needs to be able to scroll horizontally, vertically and even diagonally. The cells have to be resized dynamically based on the content.
Is this possible using UITableView or AQGridView? Or is there any other other approach to implemen...
I have this snippet of code from a class created by Erica Sadun, that Instruments says is leaking:
- (void)cacheBeginPointForTouches:(NSSet *)touches
{
if ([touches count] > 0) {
for (UITouch *touch in touches) {
CGPoint *point = (CGPoint *)CFDictionaryGetValue(touchBeginPoints, touch);
if (point == N...
Hi,
For my iPad app, I'm using a UIViewController subclass called SidebarViewController to display some stuff in a sidebar. In the sidebar I have a calendar control. I'm using the open source Kal component from http://github.com/klazuka/Kal. In the -viewDidLoad method of SidebarViewController, I'm creating a new instance of KalView (the...
When the MPMoviePlayerViewController is in fullscreen mode on the iPad, it defaults to having its controls to have a previous and next button on the overlay there. In my project I need to capture the click for that overlay button and handle it accordingly. Since I'm not sure how to invoke a playlist just yet there is no next item and cli...
How do I sort Unicode (foreign) strings in my iPhone application?
...
Has anyone successfully unit tested subclasses of UIGestureRecognizer? What approach do you use or recommend if so? How do you go about synthesizing events if so?
...
I recently accidentally updated my iPad to version 3.2.1 and had to update Xcode and SDK to continue development.
However all of my apps that ran perfectly fine before, don't display anything when ran in the new versions.
There are no error messages and the apps seem to be running just fine, except that all that is displayed is a black...
I want to apply tap (double click) zoom and patch (figure) zoom on my web view.
I am given below my code.
-(void)loadPdf:(int)pageno{
myPageRef = CGPDFDocumentGetPage(myDocumentRef, pageno);
CGRect pdfcropBox = CGPDFPageGetBoxRect(myPageRef,kCGPDFCropBox);
CGRect pdfcropBox1;
pdfcropBox1.origin.x=0;
pdfcropBox1.ori...
Hi everyone
I'm trying to put 2 TableViews on a single UIView. I've implemented the methods needed. I've tested the apps with breakpoints and the project fails at this method.
I have 2 tableviews : radios_tv and presets_tv
Two arrays from the delegate from which count is obtained: array_radios and array_presets
array_radios contains 10...
I am upgrading my iPhone application to run "natively" on iPad and am coming into a difficulty when hiding the navigation bar in landscape and showing it again in portrait.
In my BaseViewController:
- (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
[super w...
Hi everybody, I'm working on an ipad application that use coredata. It download information on a database that is on the web, and record them in coredata. The application is based on a split view. My problem was to make the update of the data in background. Here is how I've done :
- I've create an NSOperation, that does the download and ...
I've been searching for about two hours now trying to find out what this error is and how to solve it. Apple's documents gladly says
NSXMLParserAttributeNotStartedError
Attribute is not started. Available in
Mac OS X v10.3 and later. Declared in
NSXMLParser.h.
but fails to provide any help whatsoever. Can anyone help me out h...
using command
ffmpeg -i input.mpeg
get following results, then I want to look for correct commands to convert this video to the one iPad can play. Anyone familiwar with ffmpeg can give some helps ?
FFmpeg version 0.5.1, Copyright (c)
2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/opt/local
--disable-vhook -...