ipad

Positioning objects in views during re-orientation in iPad

iPad Gurus: Apple wants us to support all orientations. I take that to mean that a particular layout should either rotate so that all objects are positioned relatively the same OR, if that doesn't look good, then they ought to be repositioned, OR two views ought to be designed and built. If I rely on the built-in rotation mechanism, the...

How to put image into a template then edit it and save it in photo album

I am creating an iPad application and in it I would like to let the user select an image from their photolibrary using the image picker, then I would like to put that image into a template,kinda like a picture on a card then I would like the user to be able to edit the text on the card then saving it into the saved photos album on the ip...

Using objective-c objects with an NSDictionary

I want store a URL against a UILabel so that when a user touches the label it takes them to that URL in a UIWebView. I have declared a NSDictionary like so: NSMutableArray *linksArray = [[NSMutableArray alloc] init]; [linksArray addObject: [NSValue valueWithNonretainedObject: newsItem1ReadMoreLabel]]; [linksArray addObject: [NSValue va...

Events to play media on the ipad

I heard that you can only play media on the ipad using specific events. What are those events exactly? Thanks. ...

Add a sub-view to a DetailView UIView in iPad

I'm creating a split view controller app, the detail view has a segmented control in a navigation bar at the top. Clicking on a segment will add a new view to the detail view with the appropriate information on it (covering up the DetailViewController's default UIView). I've created two new UIViews, corresponding to each segment, and I'...

How do I take control of creation of the "navigator" of my UISplitView?

I want control over the left hand side of my UISplitView. For now I just want to control the creation, so I'm able to set the UITableViewStyle. But I also want to know how the heck I can use a different class to UITableView altogether. Any pointers? ...

Syntax highlighting on iPhone Text-Editor

Hi, I want to write a simple text editor for iPhone with syntax highlighting support for c,c++. But the problem is, I dont't know how to do this. The first solution I was thinking about, was to go over the text and highlight keywords when the value of the UITextView has changed, but I think that if I got more than 1000lines of code that ...

How do I take a pair of latitude,longitude floats and get the MKMapView to drop a pin and display the location?

Hi, Given a pair of floats for latitude and longitude, and a MapView, how do I get the MapView to drop a pin in the location and "zoom" the screen to display the location? I've read through some of the SO posts and they all seem to be about specific aspects of this, but I haven't been able to "put them together" in my head. Thanks ver...

Problem after dismissing a modal view used in conjunction with a uisplitviewcontroller

I'm having a hard time understanding why the following is happening (and how to fix it). I've created an application using the split-view based application. I've added a UiBarButtonItem called showTheModal which calls this method found in RootViewController.m: - (IBAction)showTheModal:(id)sender { theModalController.modalPresentationS...

previousFailureCount always stays on 0 (zero)

Hello all, First of all, I'd like to thank the good people who helped me around on this site. Thanks. I'm trying to detect a failed authentication attempt in my app... I'm using the didReceiveAuthenticationChallenge method, and the checking if [challenge previousFailureCount] is equal to 0. The problem is that it's always stays on zero...

Protect iPad settings

I am developing a web application to be run in iPad safari. The iPads will be provided to the customers and the question is - I want to allow access only to the safari browser and not other applications that can be found in the iPad, especially the iPad settings. Is there anyway I can do that in iPad? ...

How do I make a universal iPhone / iPad application that programmatically uses UISplitViewController and UINavigationController?

I couldn't find a good answer anywhere to this. I am using a UINavigationController for my iPhone app, with everything is generated programmatically, nothing in Interface Builder. I am trying to port my app to iPad, using a UISplitViewController and my existing UINavigationController, but I am not sure where I should have the logic of ...

TeX on iPad compatible with Apple's policy?

Hi, As a nerd, I think it would be nice to have a TeX editor on the iPad. But TeX is a Turing-complete language, and it is arguably a general-purpose compiler/interpreter. Does that make it unacceptable to the App Store? Furthermore, if somebody ports TeX compiler to javascript and runs inside WebKit, does it make acceptable to the App ...

Why isn't my UITableView appearing in the correct scroll position?

I have a split view-based app that presents a master-detail interface, and uses a popover to present the master list when in portrait mode. The popover presents a sectioned table view that ultimately gets populated by a subclass of NSFetchedResultsController. I can tap the tool bar button to present the master list, scroll to whatever ro...

managing images in an iphone/ipad universal app

Hi, I'm just curious as to what methods people are using to dynamically use larger or smaller images in their universal iPhone/iPad apps. I created a large test image and I tried scaling down (using cocos2d) by 0.46875. After viewing that in the iPhone 4.0 simulator I found the results were pretty crappy... rough pixel edges, etc. Plus,...

Connecting ipad to external monitor

I am trying to connect my ipad app to an external screen using the following (not checking the correct resolution for now - just want it up and running). - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [window addSubview:[navigationController view]]; if ([[UISc...

Is there an open source UIView subclass for creating multiple, dynamic tabs in the iPhone (iPad) SDK?

Is there an open source UIView component that supports multiple, dynamic tabbed views for the iPhone (iPad) SDK? I see several apps in the iPad App Store which utilize tabs, one such example is the Atomic Web Browser which provides a tabbed browsing experience (like Safari on the Mac or Firefox). Instead of reinventing this functionality...

UIView capturing all events

I have a UIView that uses several UIGestureRecognizers and this view again has at least one child view that contains a MPMoviePlayerController. When a touch event occurs over the movie player, the main view seems to 'eat' all the events, leaving the media player idle. How can I make sure that the events are delivered correctly to the p...

Does iPad or iPhone support OpenGL ES 2.0?

Does iPad or iPhone support OpenGL ES 2.0? How about iPhone os 4.0. Is this supported by the OS or the hardware? And can anyone recommend some books on OpenGL ES development on iPad or iPhone? Thanks! ...

The best way to package iPhone/iPad static libraries?

Hi everyone, I have a couple of static Phone/iPad libraries I an working on. The problem I am looking for advise on is the best way to package the libraries. My objective is to make it easy to use the libraries in other projects and include the correct one in a build with minimal problems. To make it more interesting I currently build ...