iphone

How to start programming for the iPhone?

I come from a .Net C# background, what's the best way to learn how to program native applications for the iPhone? ...

xUnit Testing Framework for Mac/iPhone

Does anyone know of any xUnit testing frameworks for the Mac OS, more specifically for the iPhone OS? I've seen a couple online, google-toolbox-for-mac & objcUnit, but they don't seem to have had any development on them for a long time. Are there any Objective-C developers out there that perform unit testing and if you do what tools do...

Uncaught exception in iPhone Obj C method causing crash. How to resolve / handle?

I have a crash, and I can't see why it's occurring. I'd like to get more info on it. The method that this is crashing in is: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event when I execute this line of code during debug step through: [self.nextResponder manageTouches:touches]; this is displayed in the file history ...

Observing animated property changes in a CALayer

I have a CABasicAnimation that animating a property of a CALayer e.g. bounds.origin. I want to be able to observe the property changing over time, but haven't really found a method that works 100%. I tried using KVO (key-value observation) on the presentationLayer's bounds.origin keyPath. The system complains that the object is freed b...

Works in OS 2.2.1 but not in OS 3.0: Error: type of accessor ?

Does Anyone have any idea why this code produces this errors in OS 3.0 and not OS 2.2.1? NSUInteger aCount = [serverBrowser.servers count]; error: type of accessor does not match the type of property 'servers' ServerBrowser.h is define below and serverBrowser is synthesized in .m above. #import <Foundation/Foundation.h> @class ...

Black corners on UITableView Group Style

Hi, I have a problem where my UITableView (group style) has a black "tip" above it's rounded corner. I'm setting up the background of the tableview like so: [meetingTableView setBackgroundColor:[[UIColor alloc] initWithPatternImage:[[UIImage alloc] initWithContentsOfFile:@"background.png"]]]; And my table view ends up looking like th...

iPhone Keyboard Filter Question

I want to limit the character users can type in iPhone's keyboard, so I created an array of my own. e.g. The array including 0~9 and a dot to enable users to type a price. Then I can return NO for -(BOOL)textField:shouldChangeCharactersInRange:replacementString: if the replace string is not in the array. The problem is that the backspac...

Trouble loading html file from plist to webView on iPhone

trouble loading html file from plist to webView using following code in FAQDetailViewController.m: - (void)viewDidLoad { [super viewDidLoad]; NSString *Path = [[NSBundle mainBundle] bundlePath]; NSString *WebPath = [Path stringByAppendingPathComponent:WebFile]; UIWebView *tempWeb = [[UIWebView alloc] initWithContents...

iPhone UIScrollView multiple view scaling ?

I am trying to build a map with annotations very much like MKMapKit (google maps API) - but with custom maps for indoors. I have a PDF map (mapView) being loaded into a scroll view for the map as a CATiledLayer - this works great! I have a view annotationsView which draws the annotation bubble on top of the map exactly how I want it - b...

Secure communication between django server and iphone app

I'm writing an iPhone application that needs to send small bits of information (two strings of under 128 characters each, at a time, and this doesn't happen too frequently) to a server when users interact with it. I would like this information to remain confidential, so I'm thinking of some sort of encryption or secure connection would b...

UIScrollView scrollsToTop at custom speed

I have a UIScrollView and I'm calling scrollRectToVisible:animated:YES on it. I would like to set the speed at which it is animated. Can that be done? ...

iPhone SDK:Editing XML files

Is there any external library using which one can edit and save XML files for an iPhone application? ...

UIView Transitions Animations

Hai all, SecondView *sv=[[SecondView alloc] initWithNibName:@"SecondView" bundle:nil]; [self presentModalViewController:sv animated:YES]; i like change the default animation (pop up from bottom) to fade or UIViewAnimationCurveEaseInOut thanks in advance ...

iphone SDK: too many calls to tableView titleForFooterInSection

Hi, I have a table and I am noticing that for every new row which shows up during scrolling operation basically one call to tableView cellForRowAtIndexPath there are 27 (!!!) calls to tableView titleForFooterInSection Why so many? While application seems to work fine, I am concern about performance. table has only one section than...

Iphone Address Book Sample Code

Hi All, I am very much new to the iphone SDK. I am interested to develop an application which is very much similar to the default addressbokk application in the iphone, which will help me to learn more about developing apps in iphone SDK. can any one provide me with the tutorial or sample code to do the same. I am looking for a sample co...

MPMoviePlayerController overlay

Hi, I'm loading video from external URL in my iphone app. This loading takes few minutes as the control downloads the video. While the video is being downloaded, I would like to display a small snapshot of the video (separate png file) on top of the media player control. This would be similar to the youtube app which displays a snapshot...

do i need to maintain a databse for using push notification on my web server?

how we can maintain push notification for hundreds of devices? do we need to maintain a database on server or apple will maintain this,we just need to send payload.also i'm confusing in this matter that how do i cancel already sent payload...does someone knows about it? ...

Is it possible to Test iPhone Application on Actual Device rather than Simulator?

Hello All.. I wants to test my own application to my actual iPhone Device rather then simulator. So, is there any chance to do so with ? I have an apple developer account.. But don't know the procedure, Please help me if u have any solutions.. Thanks in advance... ...

NSAutoreleasePool problem

I am using this line of code in iphone 2.0 its work fine pool=[[NSAutoreleasePool alloc]init]; [pool release]; When i run this line of code in iphone 3.0 its give some leak message in the log screen.. That message is 2009-10-13 03:26:31.841 Spectrum[3946:4c2b] *** _NSAutoreleaseNoPool(): Object 0xd819d0 of class NSCFString autorele...

Can't fix Severe Memory Leak from Open AL

Hi there! I'm nearing the end of a big iPhone project and whilst checking for memory leaks stumbled on this huge one. I implemented the sound following this tutorial: http://www.gehacktes.net/2009/03/iphone-programming-part-6-multiple-sounds-with-openal/ Works a charm, a lot of people use it but I get a huge leak a start of the project...