ipad

iPad app orientation.

I recently submitted my app for the ipad, and it was rejected for not supporting all four orientation types. Right now I have it set up so that it auto rotates to landscaperight and doesn't rotate again. How would I let it rotate to the other three orientations(or just the two landscapes(because I don't want to create new xibs unless I h...

How do I break an iPad view up into more manageable chunks?

Hi all, I know I'm probably going to be berated for not properly reading the HIG or some documentation, but after going through several training videos and building a number of small projects on the iPhone, I'm now trying to put stuff together on the iPad and, well, my brain hurts. I understood the idea on the iPhone that one view = on...

Using custom UITableViewCell's accessory view to show two items

I've been looking for this for a while, but haven't found an answer (blame poor googling skills). I have a custom UITableViewCell class which, currently, consists of a custom switch and a label. I want to add a button that's only visible (And active) when the switch is set to "Yes". Right now I add the switch to the accessory view, an...

iOS Sync & Backup

Given a jailbroken iPhone and iPad, various windows machines, and a possible shared web host environment, how would I setup the iphone/iPad to automatically sync a folder of files, such that modifying the files or adding on the iPad would result in them being updated/added on the iphone within the file system ( assuming wifi/internet con...

UITableView with side section header images

The music app on the iPad has quite a lot of interesting custom UI features, one of which is the table view displayed when looking at the albums of a particular artist. It has images along the side of each section, almost acting in a very similar fashion to section header views. If I scroll down, the top image stays there until the next...

Security flaws to Apple iPad and iPhone via PDFs?

Do any SO users know anything about these security flaws that have emerged from the German government of all people? http://www.guardian.co.uk/technology/2010/aug/05/apple-security-weakness-ipad-iphone Is it possible to understand what sort of vulnerabilities this type of hack could have (e.g. on debit/credit cards?) ...

iOS app, classes suddenly vanish, crash in alloc

This is a weird one. On and off as I have been working on my application, this problem has popped up, and then it has always mysteriously vanished. Today it is refusing to vanish. My app uses two view controllers to handle auto rotation. Sometimes, Objective-C can't find my classes. For example [OneViewController alloc] will crash. ...

Subscription based in-App Purchase tutorial

Hi All Is there any tutorial to implement Subscription based in-App Purchase.If any then please mention the link or post the code. Thanks in advance. Regards sanjay255310 ...

How to Get System Color in iphone?

I have used following code to set background color [self.view setBackgroundColor:[UIColor groupTableViewBackgroundColor]]; but it results into black background instead faint lining blue? Where am i going wrong? so how to get proper groupTableViewBackgroundColor? ...

Allignement issue of UITableViewCell in iPad when created from XIB file

Hi All, I created a TableView and its TableViewCell is created from a XIB file. I referenced the below link to do that. http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/ Now even if i set the autoresizing property for the cell from IBuilder, the right most UI components are not arranging prope...

i am getting warning: incompatible Objective-C types assigning 'struct NSString *', expected 'struct NSMutableString *'

i am getting warning: incompatible Objective-C types assigning 'struct NSString *', expected 'struct NSMutableString *' on this line:- Value = [Value stringByAppendingString:str]; I declared Value as NSMutableString* Value; How to rectify this? ...

Memory warning level in applicationDidReceiveMemoryWarning

As far as I know there are 2 levels of memory warnings. applicationDidReceiveMemoryWarning doesn't come with the warning level. Is there a way to get this information? ...

How to shuffle button or title over button?

I have 'n' button. I want to shuffle those button in my application. Or you can say that i want to shuffle the title over buttons. Is it possible.Its an Iphone app. ...

Is there any free web technology for 360 virtual tours in Iphone/Ipad?

I have a website which has a "360 virtual tours" section, it works with flash. I tried loading it on an iphone and it looks like crap, so I was wondering if there's something free that would allow me to generate the 360 virtual tours for iphone / ipads, the flash virtual tours are generated from WIDE images (something like 900x3NNN). ...

What's a common approach iOS apps use to allow users to export their textual data?

I'm diving into iOS development am building a simple Diary app. I'd like to be able to export my data somehow to my other computers. What are some common, simple ways to export plain textual data? Thanks in advance for all your help! ...

How would you store the data that represents the current list of Alarms in the iPhone Clock app?

I'm diving into iOS development and I have a few questions about the iPhone Clock app. When the user adds a new Alarm, what's the best way to store it? Using a simple plist? Using Core Data? If you look at the Alarm tab in the Clock app, you'll notice it only shows one table cell for each Alarm that exists. How can I achieve this...

iphone ipad class vars from info.plist

Hey Guys, So I have a lot of configuration settings in the plist, but do not like to invoke the infoDictionary all the time when accessing the objects. I was thinking to load all the configuration into a settings class and make that accessible throughout the application. So in the plist, say I have a key "font" and a string "Arial". ...

AccessoryView on TextView without Keyboard?

Hi! I'm learning about AccessoryViews and testing the Apple example: KeyBoardAccessory I'm trying to show the accessory view avoiding the Keyboard to show, but I can't do it :-( I'm returning NO in textViewShouldBeginEditing to avoid keyboard and animating the resize of the TextView before return, but nothing happens. What I'm doing ...

Setting font of UILabel with Interface Builder comes out Helvetica

Hello, I'm having a problem setting the font for UILabels and UITextViews with Interface Builder. I'm trying to set the font to Gill Sans. If I set it programmatically it works fine, like this: myLabel.font = [UIFont fontWithName:@"Gill Sans" size:24.0]; But if I try setting it with Interface Builder, I get the same behaviour desc...

iphone - main thread freezes for half a second... why?

I have an app that is drawing lines on a quartz context. The app starts drawing when the user move his finger across the screen. At the time TouchesMoved is fired, I save the quartz context to a PNG file (I know saving a file is slow... I have tried to do this to memory but app memory usage skyrocketed, so, I am trying to do it to disk)...