Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ksiedzulek

macrumors newbie
Original poster
Jan 6, 2011
9
0
Hi,

This is my first application for Iphone.It's a calculator, there is no error in code I suppose. Application is launching but buttons doesn't work. please exam this project. I really need answer:/ project in attachment.
 

Attachments

  • Fraction_Calculator.zip
    745.9 KB · Views: 78
Explain exactly what "doesn't work" means.
1. Describe what you expected to happen.
2. Describe what actually happens.


What have you tried for debugging your code?
http://WhatHaveYouTried.com/
Have you tried adding NSLog() statements to your IBAction targets?
Have you tried setting breakpoints using the debugger?

It's a calculator, there is no error in code I suppose.
Why would you suppose there are no errors in your code?
I took a quick look and found several errors, some of them serious mistakes in memory management. There are also some failures to assign objects to ivars.
 
Last edited:
You have to do at least 95% of the work before you ask for help. You need to isolate the problem and then post for help if you can't figure it out. If you can't / won't isolate it, you are not going to get much help. The beauty of this system is that your odds of figuring it out on your own after isolating it go way, way, way up. Cheers.
 
In your processDigit method you set currentNumber to currentNumber * 10 + digit . I don't see where you set currentNumber's value.
By The Way, this sould be in the IOS programming section, you might get more help there... ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.