ipad

How to develop an universal app for iPhone + iPad without xib files?

I want to make an universal build, but I create my UI entirely programmatically. 1) Can I add my different view controller classes to the device-specific resources directories? Or must classes be shared along both devices? 2) If I must share the classes along both devices, what's the safest way to conditionally load classA or classB de...

How to fix strange retain count (1 init - 3 retaincount)? + edit: dealloc problem

So my code goes like this: ArticleControllerController *ac = [[ArticleControllerController alloc] init]; ac.categoryIndex = idx; NSLog(@"acc retain: %d", [ac retainCount]); [app.nav pushViewController:ac animated:NO]; NSLog(@"acc retain: %d", [ac retainCount]); [ac release]; NSLog(@"acc retain: %d", [ac retainCount]); ...

UIActionsheet on Landscape mode in iPad.

I have a Single toolbar on the top of Detail View Controller as shown above. I presented an action sheet from the bar button item which is last but one in the top bar. My Question is: It is presented correctly on portrait mode ,But(only) in the landscape mode, the action sheet's up arrow points to the next bar button ( M...

How to switch between different classes in an universal iPhone / iPad app?

I have a special class that manages gestures and other things. It is strongly targeted towards iPhone. On the iPad, I need a 90% different behavior of that class, so I want to split MyController into MyController_iPhone and MyController_iPad. How would I alloc-init the appropriate class depending on if it's the iPad or iPhone? ...

Aren't universal binaries a huge waste of memory on the device?

While working on an universal binary for iPhone / iPad, I've been asking my self often: Is this really so good? I believe the iPhone and iPod touch devices will simply download the whole package, including all the irrelevant iPad content. Since my app is graphics-heavy, the iPhone and iPod touch users would suffer from about 10 MB of irr...

Is it safe to check for UI_USER_INTERFACE_IDIOM() to determine if it's an iPhone or iPad?

I've found this code, here: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { str = [NSString stringWithString:@"Running as an iPad application"]; } else { str = [NSString stringWithString: @"Running as an iPhone/iPod touch application"]; } UIAlertView *alert = [[UIAlertView alloc...

UIViewController retain problem: count never reaches zero

Please, take a look at my code bellow. This part pops top view controller (usually, the same ArticleControllerController) from the stack (I found that the problem stays the same no matter if I pop single controller or pop to the root controller), creates new one and adds to the stack. The problem is, that its retain count never goes to ...

HttpServlerRequest in iphone

hi, i am a newb in http request. is it possible to request httpservletrequest in iphone sdk if it give me some sample code for it. Thanks in advance. ...

How can I change the underlying points coordinate space of the iPad in such a way, that 1 point equals 2 pixels?

How can I change the underlying points coordinate space of the iPad in such a way, that 1 point equals 2 pixels? ...

Mp4 video won't play in the iPad

Good day, I've been working on this project and learning how to place a video on the ipad, and all the other browsers. But after writing the code for this, I noticed that the only thing I get from the iPad is the first keyframe of the video, but the video is not playing. When I press the "Play" button that appears in that screen of the...

How to create multiple table view in a View Controller for iPad?

Hi friends, I am working with the universal apps. Now i want to create a three table views in my view controller for iPAD. I have three separate view controllers with XIB.So how can i add the other two table view as subview in the main controllers. Please give me some sample applications and links. In my application, i have three view c...

Must I release this image?

I'm creating an UIImage like this: UIImage *img = UIGraphicsGetImageFromCurrentImageContext(); Am I responsible for releasing this? ...

API for Wikipedia in Objective C?

Hi there, Does anybody know if there is an implementation of the wikipedia api in objective c? which can be used to access and display the information a bit nicer then with the plain website. I'm thinking of something like the wikipanion app but not so sophisticated. Thanks Joerg ...

Layout Manager, or is there a better solution?

I have a table view where cells can display a variable amount of information. For example, the first cell could display 2 labels, the next cell 5 labels, and the third cell could display 1 label. The cell contents are stored in managed objects. I would like to make this data driven, where I have a plist to configure the cells. I'm think...

iphone application unit testing problem

If followed the apple tutorial for setting up application unit tests. I have two issues with "Application Unit Tests". The first is that I get a warning running application unit tests (see below). warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2.2/Symbols/Developer/Library/PrivateFrameworks...

How to create a window like the e-mail app that pops up

I want to create a window that pops up like in the email app when you hit New Email. Does anyone has a good tutorial or sample code of how to do this? This is the screen I want: ...

UISplitviewcontroller not as a rootview controller

I am building my first iPad application. And one of my requirements is to deal with UISplitviewcontroller and UINavigationController.our proposed view hierarchy is (LoginView) ->UINavigationView(LandingView + CollectionView)->UISplitViewcontroller( DetailsView).Our app supports only landscape mode I am referring this SO Question( and GI...

Why is my text area disabled on Ipad?

Hello, I have a social network that allows people to ask questions and write blogs. For some reason on the ipad, you can write a title, and choose a category, but for some reason it will not let you write in the text area where one would compose their blog or ask their question. Is there some sort of special text area that ipad wants sup...

Combining objects in an array

I have one array that is pre-filled with dictionaries with each dictionary consisting of two keys. { name = object1; quantity = 5; }, { name = object2; quantity = 2; } I want to be able to add more objects and combine any duplicate dictionaries. So for example, if I added 5 of object one and 3 of object 2, this would be t...

Why does UIScrollView cancel my touches on the iPad, but not on the iPhone?

I have an UIScrollView subclass where I implement all of those 4 touch event handling methods like -touchesBegan:withEvent:, etc. On the iPhone, the tracking works fine. I get plenty of -touchesMoved:withEvent: calls while the finger moves along the scroll view. I've set the self.canCancelContentTouches = NO;. I've also overwritten th...