ipad

How can I create a complete NSDate object that represents the next specified day time?

I probably didn't word that title clearly enough, but if the user specifies a time of 2:30pm and it's currently 2:00pm, then I need an NSDate object that represents the current day with a time of 2:30pm. If the user specifies a time of 2:30pm and it's currently 3:00pm, then I need an NSDate object that represents tomorrow with a time of...

ipad orientation problem with webview.

I'm creating ipad application. It has just 2 views. One view has few buttons. On click of a button it will open another view. This view has a webview which shows PDF file. I'm using the following code to show the PDF - (void)viewDidLoad { [super viewDidLoad]; NSString* path = [[NSBundle mainBundle] pathForResource:@"mypdf" ofType:@"pdf"...

iPad application download files from password-protected directory

Hello everyone, I have a password-protected directory on a running server. I would like to download some file(s) from this directory (using a URL) to the Documents directory of my iPad application. How do I send the password of the directory I am trying to access? ...

iPad: Changing the view according to the content when orientating (landscape / portrait)

I understand that Apple will do a kind of autoresizing thing when iPad / iPhone change orientation and you can set views' autoresizing masks. But what if the views' resizing is not that simple? for example, I have a TableView and each cell has different number of letters. Assuming in Landscape mode, the TableView has perfectly built s...

custom UIViewController subview does not rotate but superview does, help me work out why?

Simple iPad app. App loads and displays a UITableView controlled by a subclass of UIViewController. This works and rotates perfectly. Clicking on a row in the table view causes a new subview to be created, also controlled by a UIViewController subclass. This displays fine in portrait but does not adjust to landscape and does not respon...

How to set a Navigation bar and Toolbar in UISplitView Controller

Currently I am doing an app on Airport tracker on iPad. Actually I want to add a navigation bar at the top of the splitviewcontroller and a toolbar at the bottom of the splitview. It should look like this: http://appshopper.com/finance/expense-tablet, but I can't find the way to do this part. Can anybody here provide me an idea to solv...

Disable onmouseover/onmouseout on iPad

Hello developers, Is there any was how to disable mouseover/out events on the iPad? My problem is that we are using mouseover/out events to display some tooltips on the web and onclick event to display detail. Unfortunately this means that on the iPad you have to tap twice. Is there any global option or something like that? Thanks in...

Changing the volume without a volume slider on an iphone

Hello guys I need your help. How should I proceed to change the sound volume in my app. I don't want to use a volume slider. Instead I have an UIImageView which is a volume knob, in which I rotate clockwise to increase, and anti clockwise to decrease the sound volume. The rotation is just an animation and I've already done that part. I...

What types of files can the built in iPad Web Browser handle natively?

What types of files can the built in iPad UIWebView handle natively? It seems to handle PDF files and image files fine with loadRequest URL's, but it can't handle Excel spreadsheets. What is the complete list of files that it is capable of showing natively? ...

How can I view the values inside an object in the Xcode debugger?

I know that might sound like a stupid question since it's a trivial feature in most modern IDEs, but I'm diving into iOS development and am getting familiar with the platform and SDK and I can't figure this out. I have a ton of experience with MS Visual Studio and I see that Xcode works very much the same, tho it's still lacking quite a...

If I add a UISwitch control to each of my table view cells, how can I tell which cell it belongs to?

Hi. I have a UITableView with cells that contain a UISwitch control. It's similar to the table view in the iPhone's Clock app shown below... In my app's cellForRowAtIndexPath method, I create and attach the UISwitch control like so... CGRect frameSwitch = CGRectMake(215.0, 10.0, 94.0, 27.0); UISwitch *switchEnabled = [[UISwitch a...

Using JQTouch inside Split View Controller

I have a split view controller-based iPad app that uses a Web View to load a jqTouch web app. In portrait mode it looks fine, but in landscape mode (regardless of which orientation the app was launched in), the jqTouch page is wider than the viewport. Is there a setting I can tweak (preferably via a call to stringByEvaluatingJavascri...

When you touch an HTML element in Safari on the iPad, it turns gray. What is the logic to decide which element among nested elements is shown in gray?

When you touch an element, such as an edit box, in a web page on the iPad, it turns gray while you are touching it. I have a table wrapped by a floating div. Instead of an individual data element or row going gray, the whole table (or its wrapping div) goes gray when a data element is touched. (The function of this table is an autocompl...

HTML button tag does not word-wrap on iPhone/iPad

I am having trouble getting the <button> element to render correctly on the iPhone/iPad. Here is the sample: <button type="button" style="width:150px; word-wrap:break-word;">some very long text to make it wrap and go to another line</button> The idea is to have a fixed width button and the text wraps as needed. In newest IE, FF, and ev...

better way to resize image?

Im using CGBitmapContextCreate to read the data from a png file. I then resize the image with a couple of loops to fit the OpenGL ES image size criteria. I was wondering if there is a better way to this. Basically what I do now is have a nested loop like: for(i<newHeight){ for(j<newWidth){ copy image data } } For instanc...

iPad UI organization advices

Hi there, I'm doing an iPad application with a map. I want to have a top bar (toolbar), under a 156px height and all width block where i will display information and under an MKMapView. On my second block, I will have a UIPageControl with a couple a view. A button will also allow the user to hide this block, and the map will be resized...

Wanted to display badge No. over tool bar item or button.

Hi All, In my application i have a uibutton (having message image as its background image) placed over the tool bar. Now as new message appears i want to show a badge with number of new messages as we do in application icon or tabbar icon. Please let me know if this is possible or any work around for the same. Thnx in advance. Amit ...

crash in internal UIView(CALayerDelegate) actionForLayer

I have an inconsistent crash inside this internal selector. The exception is EXC_BAD_ACCESS, so something has been corrupted. The crash is hard to reproduce, and once it occurs, is not debuggable as the UIView that acts as the receiver can not be inspected. Does anyone have any suggestions for how to debug this crash? I can't even te...

How can I test an iPhone application on device without the key

How can I run my XCode SDK application on my iPad without key and without jailbreak? (I found a description yesterday, but cant find it back). This can be with the device connected to my development machine. (I can afford the $99, but I cant wait for it to arrive) ...

How do we get the coordinates of an UIImageView programmatically?

I would like to get the coordinates of an UIImageView programmatically. How do I do this? For example I have a square. I want to get the coordinates of all the corners. How must i proceed? NSLog("%f", ImageView.frame.origin.x); NSLog("%f", ImageView.frame.origin.y); I get the topleft coordinate of the square. I must say that the squ...