iphone

change table view's cell selection color

hi all, can we change the selection color of table view, i.e cell, by default its blue, so, can we change it to any other color? regards ...

Does anyone have a working example of fluid-animation code for the iPhone?

I'm looking for a sample iPhone app that includes animated fluids - for example, a fish tank, or glass of water. Is there one available somewhere? ...

Copy a section of one UIImage to another

Hi there, I've got a large image (960 X 640) which I use for the level in an iphone game. At the moment, I export this from my level editor as one large image, one for each level. Obviously, this is quite wasteful! It would be much better if I had a tileset, and constructed the level images in game. I tried making a tile system, but i...

iPhone: Is there a way of keeping track of touches while changing views with UINavigationController ?

I'm currently working with 2 views on a UINavigationController. I have a Leaves view (Tom Brow's leaves project) to simulate curling effect for pages which only works with images, and my actual view controller with the page and it's contents. What I'm trying to do is, when tapped on certain place, popViewControllerAnimated:NO the actua...

Unable to show 2 moviePlayer in same class

- (void) Scrollviews { self.scrollView = [[[UIScrollView alloc] initWithFrame:CGRectMake(32, 110, 3000.0, 237.0)] autorelease]; self.scrollView.contentSize = CGSizeMake(NPAGES * 320.0f, scrollView.frame.size.height); self.scrollView.pagingEnabled = YES; self.scrollView.delegate = self; [self.scrollView setUserInteract...

How to stream MMS:// link on iPhone?

I have been trying to find the solution for this but I haven't found out anything yet. Please help me with this if you have any idea about this problem ...

iPhone Dev: multiple XIB to support orientation like multiple languages?

I've just discovered multiple xib for languages ui support, I'm very excited because is simpler than I expected. Now I was wondering if it's possible to apply same method to have multiple xib for different orientation simply creating different folders in project containing a xib with the same name. ...

SSL Wrapper around iphone's app

hello, I have an app that connects to an inhouse gameserver. I want to wrap the traffic in SSL to prevent hackers from sniffing the passwords and what not. Anyways, how do I go about doing that with an iphone app? I'm using CFNetwork to communicate to the server, and everything is in our own inhouse protocol instead of using http or some...

Data format from recording using Audio Queue framework

Hey guys, I'm writing an iPhone app which should record the users voice, and feed the audio data into a library for modifications such as changing tempo and pitch. I started off with the SpeakHere example code from Apple: http://developer.apple.com/library/ios/#samplecode/SpeakHere/Introduction/Intro.html That project lays the ground...

Any 3rd party video playback libraries for iOS that allow simulations streaming playback & write to disk?

I'm looking for a better playback solution for streaming video in iOS, preferably one that allows you to stream video from a url AND save the bits to disk. Currently using quicktime on iOS, if you playback a video from a URL you can't save anything to disk, you have to stream the url every time. Thanks. ...

Why is the title bar appearing behind the status bar after a rotation?

I have a UIViewController whose view is a UIWebView with an embedded movie. When the movie is playing full screen, and the device is rotated, the title bar ends up behind the status bar after the movie is dismissed. Why might this happen? ...

Iphone tableView index position/setting

Hi all, Sorry if I missed anything about this but I have a table view with 2 large sections and an index to navigate between sections: - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { NSMutableArray *listArray = [[NSMutableArray alloc] init]; listArray = [NSArray arrayWithArray:[@"S|H"componentsSeparatedBy...

Can't override NSURLConnection canAuthenticateAgainstProtectionSpace and didReceiveAuthenticationChallenge delegate methods

I am simply trying to ignore an unsigned SSL certificate and am I am directly following examples I found online of how to override two delegate methods of NSURLCOnnection as follows to allow my app to use an HTTPS connection to a server which has a self-signed certificate: - (BOOL)connection:(NSURLConnection *)connection canAuthenticate...

The graphing in Apple's stock app

Is the graphing portion of Apple's "Stocks" iPhone application available to developers? My guess would be that it is not. If I am right, on a rough scale on 0-100, how difficult would it be to reproduce? (I know this is a silly question, but anyway. Just want some idea.) Also, what framework do you think would be the most suitable for t...

Does CGContextDrawImage decompress PNG on the fly?

I'm trying to write an iPhone app that takes PNG tilesets and displays segments of them on-screen, and I'm trying to get it to refresh the whole screen at 20fps. Currently I'm managing about 3 or 4fps on the simulator, and 0.5 - 2fps on the device (an iPhone 3G), depending on how much stuff is on the screen. I'm using Core Graphics at ...

Callback for kAudioSessionProperty_AudioRouteChange not called in one case

Hi all, I want to be notified if headphones are plugged in or plugged out. I'm currently doing this using a property listener like this: AudioSessionAddPropertyListener (kAudioSessionProperty_AudioRouteChange, myCallback, self); This works perfectly well in all cases except in one, it goes like this: Launch, iPhone is unmuted, no he...

How to cache JSON data for offline reading in iPhone APP?

I'm new to iPhone development and I still have some gaps that needs to be filled in the first application I'm developing. This app will consume data from a site managed by Wordpress through the Wordpress JSON plugin, which allows to retrieve the posts in the form of a json string. I wanted my application to store the posts in some form...

Getting notifications from movie player in UIWebView

Hi all. My application is streaming YouTube videos by loading a URL in a UIWebView: NSString *videoURLStr = [NSString stringWithFormat:@"http://www.youtube.com/embed/%@?autoplay=1", videoId]; NSURL* videoURL = [NSURL URLWithString:videoURLStr]; [movieView loadRequest:[NSURLRequest requestWithURL:videoURL]]; This works great, except ...

How to refer AdBannerView inside the Cocos2d Delegate File

When I type "ADBannerView" it throws an exception that the ADBannerView is not declared. I am referencing to the following inside my Cocos2d delegate header and implementation file: #import <UIKit/UIKit.h> ...

What Techniques Are Best To Live Stream iPhone Video Camera Data To a Computer?

I would like to stream video from an iPhone camera to an app running on a Mac. Think sorta like video chat but only one way, from the device to a receiver app (and it's not video chat). My basic understanding so far: You can use AVFoundation to get 'live' video camera data without saving to a file but it is uncompressed data and thus...