iphone

apple certified professionals

Lets take an example Microsoft - provides OS & application development tools like .net Microsoft also provides study center & gives Microsoft certified Professional Certificate or something like that. Same way oracle also provides courses - DBA Same way SAP provides Does apple provides something like following? Apple iPhone Certifi...

How to know - view controller's current view in iphone

Let's have an example. In application I have a tab bar controller. Tab bar has two items dynamically - two view controllers. User can select any of tab. Suppose user selects first tab. First view controller is already loaded. Now he clicks on a button of First view controller. From First View controller -> Second View controller is pu...

Will Apple reject my iPhone application because of increasing memory usage?

I have an application with multiple views. It works pretty fine without any leaks or crashes. But when you run using performance tool for leaks, I see when I switch through multiple views and comeback to home screen, my overall size of the application gets increased. Like if its 1.53MB after visiting 4-5 different views and getting back ...

How do I draw a sprite on a background using Quartz and CGLayers?

Hi, I am a newbie in Quartz and I am fighting to understand this stuff apple say is very easy and straightforward. I have created two CGLayers: one for a fixed background and another one for a sprite. I want this sprite to move. Both the background context and the sprite context are drawn offscreen and I would like both to be seen on ...

How to compare/merge between XIB files?

Hi guyz, I have these two XIB files. The first one edited by my friend to add features and to other one edited by my self and add another features. My problem is how can i merge the two files? I know that XIB files are XML based and I can use some compare tools to merge it. But I think there will be some conflicts. What is the best way ...

Why is this line leaking memory?

Any ideas why the line below would be leaking memory? cell.imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:person.imageURL]]; within the cellForRowAtIndexPath method: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView d...

Include a resource directory hierarchy into app bundle

I have a directory structure (multiple levels deep) of resources, that I would like to include into the app bundle. Is this possible without creating a Copy Files phase for each directory in the hierarchy individually? ...

UIButtons at the bottom of a UIScrollView are not receiving touches.

I am writing an iPhone app with a tab bar and navigation bar. At a certain point, I am pushing an instance of my DetailsViewController class onto the navigation controller stack to show it. This controller creates its view hierarchy in code: the controller's view property is set to a UIScrollView, which contains a plain UIView (let's c...

iPhone SDK - How to play a video with transparency?

I recorded a video with a bluescreen. We have the software to convert that video to a transparent background. What's the best way to play this video overlaid on a custom UIView? Anytime I've seen videos on the iPhone it always launches that player interface. Any way to avoid this? Thanks! ...

iPhone-SDK: UITextView doesn't show the newline key

I could get the keyboard to work but on a UITextView but some how the new line key doesn't show up. please help me thanks ...

How can I blend between my UIView and my EAGLView?

I have an opengl scene rendering on an EAGLView layer and some other elements (circles and such) rendering on a UIView (which is a sibling of the EAGLView, positioned above it). Is it possible to blend colors between the two layers? I'd like to do some difference blending to get an inversion effect on the colors from EAGLView. I've ...

Tab Bar on TableView?

Hi, Expecting your well advice! I have a TableView(Grouped Table created via I.B). I'm showing some data on the table when code executes using Navigation Controller view. I want to add a "Tab Bar" in my Table view whether through I.B (or) Programmatically. For ex: Launch built-in "Clock" app, where you can see a Tab Bar which has optio...

API call or example code to display images in iphone bundle?

I'm trying to find some example code or maybe an api call to display 20 or so images in an iphone bundle and then let the user select one of those images. G-Man ...

Transparency/Blending issues with OpenGL ES/iPhone

Hi everyone. I have a simple 16x16 particle that goes from being opaque to transparent. Unfortunately is appears different in my iPhone port and I can't see where the differences in the code are. Most of the code is essentially the same. I've uploaded an image to here to show the problem The particle on the left is the incorrectly rend...

How to load an image stored in a static library

in my iphone app, I am linking with a static library containing objective c files and images. Is it possible to load an image from a static library? I have tried [UIImage imageNamed:[[NSBundle mainBundle] pathForResource:@"imageName" ofType:@"png"]]; but obviously the image is not in the main bundle, it's in the static library and th...

How to remove a subview from memory and display right away?

How do I remove a UIImageView's subview (a View Controller in this case) from memory and display immediately? [myGroovySubview release]; isn't doing it. Any help appreciated! Thanks // :) ...

WWDC 2009 iPhone Session Videos?

Has anyone bought these videos and if so are they worth the $299 price tag? I noticed that there are a lot of content here, so I was just wondering if it's worth it. ...

fade transition in iphone (forward and backwards)

Hey guys, I'm almost done coding my project and I have come across 1 to 2 problems with the fading. Here is what my code looks like CATransition *animation = [CATransition animation]; [animation setDuration:0.5]; [animation setType:kCATransitionFade]; [animation setSubtype:kCATransitionFromRight, kCATransitionFromLeft]; [animation se...

How to enable scrolling for UITextView while creating it progrmatically.

Hello all, I have created a UITextView programatically and want to enable scrolling for that UITextView. Is there any property or method to do that becoz its not enabled by default. I am using the following code which displays it but its not scrolling down. UITextView* txt_tipView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 1...

Passing a touch event to all subviews of a View Controller

I have a view controller which creates multiple subviews on top of it. All subviews and the view controller accept touches. How can i communicate the touch point information to all the subviews on the screen? Keep in mind that each subview covers the entire screen so after a few additions its a bit like pages in a book. That is, any s...