ipad

Cocos2d Sprite performance with bitplanes

Is it possible to improve performance drawing sprites by reducing the number of bit planes used in their image file? For example if you only used 4 colours and hence image was 2 bitplanes, would cocos2d show and manipulate these quicker than a 24 bit colour sprite? ...

How do you switch to a split view. If you don't start with one.

I'm looking to find out how to switch to a UISplitView from another view. The user will click on a button and the Split View should open. I'm having no luck at all. I start with a normal view and when the user clicks on the button i try to switch to the split view by removing the current view and initing the split view controller. I wo...

What's a good approach to implement a smudge tool for a drawing program on the iPad?

At a high level (or low level if you'd like), what's a good way to implement a smudge affect for a drawing program on the iPad using Quartz2D (Core Graphics)? Has anyone tried this? Thanks so much in advance for your wisdom! UPDATE I found this great article for those interested, check it! ...

iphone - will the retain property propagate on an array?

I have a mutable array that has been retained. This array contain dictionaries with lots of keys. Each dictionary contains objects. Do I have to retain the dictionaries before adding them to the mutable array or will the array itself retain everything that is added to it (because it is already retained), including the sub objects of it...

Xcode iPad or iPhone Build Size Question

Had a question and if anyone has found similar issues. It seems my file size keeps growing. I have had to import existing files and then delete them from the project. It seems that it keeps those files somewhere. From being 40mb and importing a few .WAV files at 30mb each it goes up to 100mb. After I deleted them it seems it doesn't chan...

Quartz PDF API Causing Out of Memory Crashes

I'm having crashing issues using the Quartz PDF API for iOS. At the moment I am compiling with the SDK 4.0 GM Seed and running on my 3.2 iPad (I have tried using the 3.2 SDK with identical results). All the code I am using is based on the standard Apple Quartz documentation and from various sources around the internets. So I can't image...

Is it possible to detect DPI in iPhone OS, or Android?

I'm doing some research on making a game that will be able to scale its graphical resources to suit the DPI of whatever device it's on. In order to do this, I would like to be able to query the DPI of the device, to appropriately scale the assets. It's a 2D game, and the art style suits arbitrary scaling quite well. example of what I ...

iPad rotation bug when using MPMoviePlayerViewController

Issue summary Changing the orientation of an iPad device or simulator while playing a video using MPMoviePlayerViewController results in an inconsistent rotation state upon dismissal of the video player. This is a known bug in iPad SDK 3.2, documented at http://www.openradar.me/8012810 Sample project I have prepared a minimal sample ...

How to use opengl es sharegroup to share a render buffer for screen mirroring on the ipad?

I'm trying to do screen mirroring on the iPad with opengl 1.1. I've got to the point of setting up the external window and view. I'm using opengl on the first screen, and I've read that I can setup a shared render buffer, but since I'm somewhat of an opengl beginner I'm having some trouble getting something up and running that can share...

Can I get default audio files of Iphone (marimba, alarm, ascending,...)?

Hello everyone, Currently I am working on iPad. I would like to retrieve system audio files by default in iPad (I think it is the same in iPhone). Does anyone know how to retrieve it? I have tried AudioServicesCreateSystemSoundID or AVAudioPlayer but I can get these audio files (Marimba, alarm or ascending,...) Thank you ...

What is the name of the component used in the app store to show the new and noteworthy apps?

I want to use this component to develop an application and I can't find it anywhere. ...

Orientation ipad design doubt

Hi, I created a perfect UI designs for ipad in UIInterfaceOrientationPortrait mode... Its work fine... For some reason i tested ipad with UIInterfaceOrientationLandscapeRight of my application. Its totally mess. My all labels and textfields are out of the screens. I know why its happening , because of width and height of the uivie...

iPhone - UITableView datasource?

I have a UITableView that was created from data coming from a mutable array. This is an array of dictionaries. So, in order to populate my table, I did something like - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ... NSDictionary *umObject = (NSDictionary*)[listaDeObjectos ob...

Capture Signature using HTML5 and iPad

Anyone know how this can be done? Would you use a canvas object, svg, jQuery, etc? ...

MPMoviePlayerController not getting touches

I have a MPMoviePlayerController which resides int a UIView which again is located in a UIScrollView. The UIView is getting event/touches, but I am unable to press on the controls on the movie player. All layers have userInteractionEnabled = true. The base view also has UIGestureRecognizers attached to it. How can I trace the path of a...

How can I easily change the overall opacity of a bitmap context using Quartz2D?

I'd like to create a fade out affect with one of my bitmap contexts that I use to draw a static image in one of my views. What's an easy way to adjust the overall opacity of the bitmap context on the fly before I render it to the view? Thanks so much in advance for your help! I'm going to continue researching this right now. ...

How can I create a floating toolbar for an iPhone/iPad app?

I'm working on a bitmap editor app for the iPad/iPhone and I'd like to have a floating toolbar that the user can move around the drawing canvas so it doesn't get in the way of the drawing surface. I'd use a standard UIToolbar, but I'd like the toolbar to have a zoom navigation view, which wouldn't fit elegantly in a standard UIToolbar. ...

How can I easily change the overall opacity of a CGImageRef using Quartz2D?

This question is similar to another question I just posted, but I'd also like to create a fade out affect with one of my CGImageRefs that I use to draw a static image in one of my bitmap contexts using CGContextDrawImage(mBitmapContext, imageRect, imageRef). What's an easy way to adjust the overall opacity of CGImageRef on the fly before...

Cocoa Touch: How can I access resource sub-directory?

Currently I am working on iPad. In the Resources folder of project, I have a sub-directory "sounds". How can I access it to get the contents of this sub-directory? I have tried: NSArray *array = [fileManager directoryContentsAtPath: [[[NSBundle mainBundle] bundlePath] stringByAppendingString:@"soun...

iPad popoverControl

Hi i have implemented the popover view to the BarButtonItem, it works and shows the popover but the arrow which is permittedArrowDirections:UIPopoverArrowDirectionDown - in this the arrow will show in the down direction.but it hides the bottom bar,can any one help me to over come this problem of hiding the barbutton.. Thanks in advance...