ipad

Instruments - leaks in iPad app

Running Instruments on my iPad app found 2 leaks, except I cannot understand where they are coming from. The first one is in this method in my app delegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [window addSubview:self.viewController.view]; // <--- it leak...

How can I play video offline on iPad, using an HTML 5 web app (using Sencha touch or otherwise)

I've created a web app (using Sencha Touch, but that's not important) which I'm trying to get offline. It's a slideshow with images and a video. When online, it plays an mp4 video using the tag in HTML . I can take it offline using a cache manifest file, which works fine for all other content, but my video won't play when offline. I've...

Xcode or iOS won't use my Icon-72.png on the iPad

I have created 3 files for the app icon: Icon.png, Icon-72.png, and [email protected]. [email protected] shows up fine on the actual iPhone 4. The simulator, however, only uses the 57px version. With the iPad neither the simulator nor the iPad itself uses the Icon-72.png file. Only the 57px version. Help! :) ...

How can I make a custom class be displayed in MainWindow.xib?

I created a custom class that inherits from UIView and I want to display an instance on the screen. However, when I try to link the outlet from the App Delegate to the object I dragged onto the screen (which is that custom class I created) the link cannot be created. What am I missing? ...

XMPP for exchanging game info between two iPad via Wi-Fi, good approach?

Hi all: Just got my iPad yesterday and I wanna start programming a distributed game between iPads for a little community across the globe, so no blue-tooth. I've heard of the XMPP protocol to enable data exchange between two PCs, such like this thread on SO Basically, the approach is a decentralized solution, once a valid connection ...

can i add progress into a UISlider?

This picture shows what i want , i just making a custom movieplay controller. I know how to make a custom uislider as code below playSlider.backgroundColor=[UIColor clearColor]; [playSlider setThumbImage:[UIImage imageNamed:@"sliderButton.png"] forState:UIControlStateNormal]; [playSlider setMaximumTrackImage:[UIImage ima...

ipad, Need help with a memory leak

I have this code: void getStringWithTag(char* pFile, long sizeSound, char* tag, char* ret, float* currentPos){ char* tagCopy; tagCopy = (char*)malloc(256 * sizeof(char)); int totalLen = 0; int tempLen = 0; memset(tagCopy, 0, 256); memset(ret, 0, 128); pFile += ((int)*currentPos); while (totalLen+(*currentPos) < sizeSound) { if (*pFi...

How to display two pages in one scrollview page with zooming from PDF?

Hello everyone, I want show per page pdf in portait mode and display two pages when rotate to landscape mode on ipad . I had search on internet and can't find any solution. I thought two possible way. 1.Using webview but I don't know how to display two page in one webview in a webview. 2.Using CGPDF API read from two page and merge...

UIView not being positioned with setFrame

I'm probably not doing this correctly. Having not done an iPad app before I'm doing what seems natural to me. I have a UIView that is going to be made of up other UIViews. Specifically, I want to dynamically create and add subviews to each of these subviews. In other words: UIView | | --> UIView | | --> Dyna...

How to read a pdf on ipad/iphone?

What is the way to read PDF content on an iPad or iPhone? ...

iOS 4 freezes app

Hi guys, I have an app that runs on iPad and iPhone running iOS 3.2, but when I try to install it in the simulator it freezes - unresponsive interface (a UIAlertView at this point), no console messages, no crash logged. When I step through, it gets all the way through applicationDidFinishLaunching and then stops with this list of calls:...

How do I add a custom UIMenuItem to the UIMenuController in a UITextView?

I'm trying to add a menu item next to the "copy", "paste" items in a UITextView. I've created a subclass of UITextView and copied the example from apple's docs here: http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/Text/Text.html#//apple_ref/doc/uid/TP40009370-CH8-SW28 I simply created a ...

iPad page sheet rendered with no background (bug?)

Hi, In my iPad app, I am presenting a modal view controller with the UIModalPresentationPageSheet style. Today, randomly, when I presented the modal view controller, the page sheet was rendered without the white background, leaving just the shadow: I have not made any changes to the view controller that is being presented, or the vie...

Standard c library headers on iPhone/iPod touch/iPad

I have an iPod touch and iPad with gcc installed on them. However, everytime I try to compile my programs they always fail. I am trying to write c programs for the terminal, not GUI. I am missing the standard c/c++ libraries (stdio.h, etc.). Can anyone tell me where I can find these libraries? ...

iphone to ipad, iphone 4 uialertview problems

So I've upgraded the code to the ipad (i.e. converted to a universal app). However, the UIAlertview rendering seems to be off for IOS4. Instead of being positioned in the middle, it jumps up and is displayed on top, with half the box cut off. Same goes for landscape orientation. It is my understanding that the UIalertview is always set...

what is the best practise to do a landscape ipad app?

i am now doing a ipad app which only has landscape view. normally when i do a portrait view i just use a rootviewcontroller.view and addsubview in the root view. and using delegate to tell rootviewcontroller to remove it when switching views. i've already set the info.plist so that the only accepted orientation is 2 landscape mode. and ...

GoodReader application supports Webarchive

i read out that Goodreader application use .webarchive format to display pDF.Is .webarchive is supported by ipad and iphone ...

Setting the active executable in Xcode

Hi, I have the same problem as this guy had : http://stackoverflow.com/questions/2332214/setting-the-active-executable-in-xcode I'm pressing the "option" key, and it does add more options, i'm choosing iphone simulator 3.1.3 , but when I press "run" , still the ipad simulator is running. The problem only appears when I choose "Iphoe ...

Proper way to Add a TableView to an iOS project's view Hierarchy?

We have a simple view based application we're building for the iPad. We're doing a custom UI so everything is being done programmatically. At the moment our view heirarchy looks something like this: UIViewController -> UITableViewController -> TableView We want to transition to the UITableViewController's TableView when an event fires....

iPad running iPhone apps and font scaling

I'm testing one of my iPhone apps on my iPad in "2x" mode, so it stretches everything to double-size. I've noticed that some text appears to be smoother than others. From my (limited) testing, text in a UITextView or UITextField that is being edited (has keyboard focus) is smoother than a plain UILabel hanging out in a view. I'm not s...