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...
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"...
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?
...
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...
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...
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...
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...
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 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?
...
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...
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...
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 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...
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...
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...
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...
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
...
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 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)
...
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...