ipad

Find web resource files in bundle

I have several html files which will be located in the documents directory at locations only known at runtime (may be within a varying tree hierarchy). The resource files (javascript and css) however will be located within the application bundle. What path do I need to use in the html files in order for them to find the resource files? ...

Cursor movement in UITextView on iPad

How to implement the move leftward like pressing the left button on the physical keyboard in iPad? I can get the current cursor position, but I need to figure out a way to calculate the width of the current character and subtract that from the current x position. Is there anyway to calculate the width of the current character? Thanks!...

Creating a ScrollView that works like Pages

I'm trying to create a scroll view that works like Apple's Pages app on the iPad. See pic below. I can create a similar scroll view with subviews containing the individuals pages, spaced apart as shown, and with pagingEnabled, it scrolls OK, but I want to achieve a scrolling effect that keeps the subviews centered once they've scrolled...

UIPopOver position and orientation change

How i can check a UIPopOver presenting or dismissing? I have two UIPopOver so i don't know exactly what UIPopOver is presenting to set up position again when orientation change. I hace seen "unsigned int isPresentingOrDismissing:1;" property but i don't know how to use it. ...

XIB files vs. defining layout in code in iPhone

Aside from the WYSIWYG editor, what are the advantages of using XIB/NIB files over defining the layout in code in iPhone/iPad/iOS? While I don't find XIB files much useful, many iOS developers do, which makes me suspect I might not know their benefits or how to use them properly. ...

How to draw a background fast in cocos2d?

I'm toying with a small game on my iPad using cocos2d and I've run into some performance worries. I have a 512x512 image tiled as my background. That gives me around 40fps with 20 sprites (in a CCSpriteBatchNode), the code for the background is this: CCSprite *background; background = [CCSprite spriteWithFile:@"oak.png" rect : CGRectMa...

Does Adobe Air apps work in iphone and ipad ?

Does Adobe Air apps work in iphone and ipad ? ...

iPad orientation problem when iPad is laying flat on desk.

Hey, I have the following code: -(void)viewWillAppear:(BOOL)animated { UIDeviceOrientation orientation = [[UIDevice currentDevice] UIInterface]; if(orientation==UIDeviceOrientationLandscapeLeft || orientation==UIDeviceOrientationLandscapeRight) { NSLog(@"Device Landscape"); } else { NSLog(@"Device Portrai...

Does all new apps have also to work on iPad to pass the appstore approval process?

A friend of mine told me that there is a new rule to pass the appstore approval process. The app also have to work on iPad otherwise it would get rejected. I didn't find something which supports his statement. Does somebody know what is true? ...

ModalViewController based app crashes after 30 presentations

I have an ipad App, which has categories (tableviewcontrollers inside it) and detail views which has a webview shows info of the row on tableview. On didSelectRowAtIndexPath function of category table views i am using the code as: DetayViewController *dvc = [[DetayViewController alloc] init]; Blog *b = (Blog *)[self.blogArray objectAtI...

How to show an iPhone app on iPad with retina display graphics?

I have an iPhone app and upgraded the target for iPad in Xcode. But now, the app launches in the upper left corner of the iPad very small only. I want to scale it up to the iPad screen but then use the retina display graphics. There's a lot of code that positions the views on screen. Is there an simple way to let an iPhone app appear x2...

How to provide saparate classes for iPhone + iPad in one universal build?

Problem: In my iPhone app code, I'm positioning and animating a lot of views programmatically. For the iPad, I want to provide a completely different user interface, but also programmatically. I don't like to use Xib files. How can I make different views and view controllers and load these depending on if it's an iPad or an iPhone? What'...

create hardware for iphone to connect with external device. arduino?

hi i need to create a simple connector. I think i may need to create an arduino board that will take data from the application and then transmit them to an external device. There is a slider in the application which the user can adjust. When adjusting the slider the application will just send in values from the application to the connec...

OpenFeint with GameCenter really that easy?

I was reading this: http://www.openfeint.com/ofdeveloper/index.php/kb/article/000089, and it seemed to make out that the implementation of GameCenter with OpenFeint was as simple as adding one plist to the project (after setting up achievements / leaderboards). But is this really the case? I've just implemented this in my project now and...

box shadow on an ipad / safari

Hi Guys, I'm having trouble adding the nice shadow on focus for an input box on my ipad for safari. Here's my code /* remember to define focus styles! */ :focus { outline: 0; } input[type=text]{ width: 494px; height: 44px; line-height: 44px; font-size: 24px; border: 2px solid #666666; ...

different CSS stylesheet for iPad and iPhone in universal application

I have what is essentially an offline web site embedded in a UIWebView. I've created a stylesheet to format everything nicely on the iPhone screen, but I need different formatting to take better advantage of the iPad's screen. I tried using code to simply copy a different stylesheet into place, but this involves modifying the applicatio...

Line artifacts in mobile Safari

Safari renders black lines in between divs on my website at some scales. It is particularly bad when it breaks apart an image that is chopped in two different divs for a button or something. I can't put a BG in the parent of the two divs because they are transparent .pngs. Any solution or just deal with it? ...

Calling fql queries from the iPhone fbconnect libraries

I started developing an iphone application in June 2010 that used the facebook API's extensively. I logged in and got a FBSession which contains the logged in user's profile id, etc. I then used the FBRequest class to make many calls using the FQL to get data. How do I call fql queries from the latest fb connect apis? ...

iPad - FaceDOWN Down Issue

Hi, I am working with iPad App. And i have problem in FaceDOWN, in this orientation viewdidlaod & viewwillappear will not call evenif the button is also not work. In faceUP orientaion all the functionality is working. In my plist four orientation is set in Supported interface orientations (iPad); Portrait (bottom home button) Port...

How to present GKAchievementViewController so it will display 1024*768 in iPad?

I am displaying gamecenter achievements using [myRootController presentModalViewController:mAchievementsController animated:YES]; for iphone it is displaying modalView of size 320*480 But for ipad it is not displaying modalView of size (1024*768). How to present GKAchievementViewController so it will display 1024*768 in iPad? ...