iphone

Objective-C and its relation to C

Hi folks, Actually, I am very new to Mobile programming, and need to take your opinions. I am a Java Developer with a C background, and I need to start Learning Objective-C with a target to do mobile app for iPhone and to refresh my knowledge in C (as I know, Objective-C is a pure superset for C, ain't it?). So, the question is, With...

Xcode 3.2 not recompiling changed files

I've been programming a new iPhone application and everything has been chugging along fine, until this afternoon when I noticed that any changes I was making were not being reflected in the actual app! Even code that throws errors isn't getting picked up by the compiler. To get around this, I have taken to the following procedure: Fin...

steps to fix a project that won't compile

Hi Pulling my hair out in trying to get a simple window based project to compile. I am running both 3.2.2 and 3.2.3 versions of Xcode. The latter is set up in a separate folder. Originally I used the latter to create and compile my project against the new 4.0 sdk. It compiled fine. Then I made the mistake of deleting some sdks I though...

Which iPhone is best for application development, 2G OR 3G?

Hi Friends, I would like to test iPhone applications to test on device. I am in confusion on the version of iPhone which suits best for iPhone application development. Can anyOne of you suggest me, is 2G OR 3G better? Its Urgent.. Thank You. ...

navigation bar and button

any ideas how i can click on a button and then direct me back to homepage without having the navigation bar to show the previous page? meaning it's like starting from the beginning of the home page.. ...

Adding map overlays

Hi all, I am using iPhone os4 for development. I need to add overlays to mapview. Apple now provides overlays as a new feature of os4. How can i add overlays.Any help will be greatly appreciated. ...

UITabBarController's 'More' navigation controller disappears under UINavigationController

I am using a UITabBarController as well as a UINavigationController on my app. In my UITabBarController I am using more than 5 items so I automatically get the 'More' item. I've managed to add a saving procedure so the order of those items will be kept in case somebody changes the order etc. With 'More' active I get the More navigation...

Text Editor like Pages iPad App

Hi all, I want to implement a functionality similar to found in Pages app..i.e. text floating around images, image zooming etc.. I have been struggling with this part of my application but no success yet. Would be grateful if someone provides me with some pointers in this regard , like 'Which UIControl should I use?','Help in thinking l...

how to set data into textfeild

hi all i have a table view containing some text. and an selecting a row, i hv to set text on another view's textfeild based on the selected index of row od table view. this is hoe it looks like -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { abc *abcController = [ [ abc...

Drawing in iPad

Hi all, I am trying to draw custom shapes in iPad application. I am using UIBezierPath for drawing which is available for 3.2 onwards. My question is whether it is good to use this class or should I go to the core graphics? Is there any difference between uibezierpath and core graphics drawing related to performance? ...

how to implement zoom and pinch zoom effect in application same as photo application?

i hve have implemented photo application same as photo application.Now i want to implement zoom and zoom pinch functionality same as photo application.Please provide me any code or document. Thanks in advance ...

How Can I open another App from my app?

Hi I have rediATM app installed on my iphone. rediATM app is free on itunes. I want to open that app from my iphone app. I am not able to find out the way to open it. i am using the following code to open it but it takes me to the website. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/au/ap...

How to create iPhone application can download content

Now I try to build iPhone application, like magazine online, that can download new magazine form web and store in app (can play offline). I no idea for implement feature download new magazine form online source and store in the app. Please help me. ...

How much contentOffset changes in UIScrollview for zooming?

Hi, In UIScrollview, when I scroll/drag, I got changes in scrollview contentOffset which represent how much I had scrolled/dragged in the scrollview. By this way, I have updated the subview of scrollview for scrolling. But, when I zoom the scrollview (using pinch zooming), the contentOffsets of the scrollview is also changed. I do not ...

core animation or opengl?

making a game like 'doodle jump' requires opengl or core animation is just enough? which is the poit from where one should consider using opengl? ...

iPhone App Development - mathematical sysmbols

I am quite the beginner - but I have a lot of experience with respect to Electrical Engineering and formulas - over 30 years worth! Trying to construct an app for the iPhone. Loaded the SDK, bought myself a Mac, got a couple of "Chapter" pages written by John at Alpha Aviation - who recomended I try this site. How do I - well for example...

how to implement slider same as calendar application in ipad?

I have implemented ipad application in which i want to implement slider same as calendar application in ipad.i dont know how to implement.please help me for this query. Thanks in advance. ...

Subscribe to a WebCal URL in iOS 4.0

Hi all, In my iPhone app, I have this button, that opens a webcal:// URL in a UIWebView as follows: #define kHostName @"webcal://www.markthisdate.com/kalender/World_Cup_Football_2010_Match_Schedule_10251.ics" - (IBAction)putInCalendar:(id)sender{ NSURL *url = NULL; url = [[NSURL alloc] initWithString:kHostName]; NS...

Save UIView's representation to file.

What is the easiest way to save UIView's representation to file? My solution is, UIGraphicsBeginImageContext(someView.frame.size); [someView drawRect:someView.frame]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); NSString* pathToCreate = @"sample.png"; NSData *imageData = [NSData dat...

Getting a list of points from a UIBezierPath

Hi, I have a UIBezierPath that I need to take a list of points from. In Qt there is a function called pointAtPercent that would fit my needs but I can't find anything equivalent in Objective-C. Any one knows how to do that ? ...