Added: 11 months ago
From: GeekyLemon
Views: 49,809
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (176)

Sign In or Sign Up now to post a comment!
  • when i put more than 8 numbers on the calculator, if i put forexample 8 "2"'s then the 9th 2 changes to a complete different number :/ HELP? please

  • How do I add a decimal to the pad?

  • @educastarin All you have to do is on your ".m" file, you go to where you wrote ' @"%2f" ' You re write ' @"%2.f" ' on both places you putted that code.

  • How do you remove the .00000 ? please help

  • sorry i mean with wifi that else is not good

  • Can you make a tutorial with some thing else WIFI

  • how do you add one text field to another

  • Nice video... using the 'tag' method when provisioning buttons as you did in this video, how would one hide or make them visible again?

    Thanks...

  • hey

    from romaia how download xcode site me not work thank you

  • "(" = parentheses, "[" = brackets, "{" = braces. That would make your video a lot easier to follow.

  • Niece won. I messed about with 3. about a 2 yr ago. just downloaded xcode and had my device connected. provisioning etc carried out auto. A very clear and basic tutorial that gives a leg up to guys at the base. Thank you. .

  • Instead of repeating what you write you should explain the concepts and relationships between the objects in the project. Thanks

  • This is a great tutorial, but i have a few errors that i don't know how to fix..

    The line at 5.20, says 'redefinition of '- [CalculatorViewController buttonOperationPressed:] '

    and

    The line at 8.10-8.20, the error is 'NSStringWithFormat is 'undeclared' what does this mean?

    Thanks for any help mate :)

  • Worked great!

  • Loads perfectly but I do not get input on the screen (e.g. I press 9+9=, the 0 remains there)

  • Thanks nice tutorial. Can you do a tutorial for a simple todo list using a table view? Thx.

  • Thanks :) Nice tutorial, keep up the good work!

  • nothing comes up in my files owner anyone have any ideas?

  • Is this tutorial possible in xcode 3 because once I got to the window design I couldn't see recieved actions tab....

  • my opens then crashes straight away

  • Comment removed

  • how much do you know of coding i would like some help im going to get 10 different books to read for coding

  • coding is not easy its hard theres over 109000 things you need to learn

  • I also got this working! Great Tutorial. Trying to add things .

  • Can u put a decimal point?

  • How do u remove the 6 decimals in the answer?

  • @GeekyLemon don't know why but it said build failed and i have checked twice why did this happen

  • Could you put a decimal point?

  • very very nice, thx!!!

  • does any one know what type of template he started of with?

  • you could save yourself some time by putting result (symbol)= currentNumber; in the switch function's cases instead of typing out the entire function. for example, in case 1 you could write result += currentNumber;

  • Hi, can you tell me the program that you use in the video to say out loud every character you type ?

  • Very nice tutorial. All worked on me. Thank you very much

  • Whenever i try to press any operation button it freezes! In xcode it says, ," stopped at breakpoint 1: calculatorScreen.text = [NSString stringWithFormat:@"%2f",result­]; " any idea?

  • on my channel there are tips en trucs from Xcode and more

  • Great tutorial!

    I totally followed this video, but it does not work.

    Anyone using X-code 4.2???? and does it work?

  • @Sizzka85 . I have X-Code 4.2 Snow Leppard. And I followed the tutorial and yes got it working fine without problems.

  • Is there an easy way to set up a "." decimal button based on the way you have it set up?

    Thanks in advance. Great tutorial!

  • Hi, i am totally new in mac and Xcode....

    What did you do in the 54 to 56 second in the video??

    did your press "tab"?

  • I followed your tutorial, and works fine on xCode 3.1

    I'm running OS X Leopard, so I can't use the new xCode... that sucks...

  • Great tutorial. I used it to create a Multicultural Calculator (will be distributed free of charge). I still have a problem when I enter a number with more than 8 digits (the number changes to some random number).

  • @MysteryEcheverria change current number from a float to a double

  • @042Xavi Thank you VERY MUCH - it worked!

    I posted some pictures of the app at matechmatics in case you can take a moment to view it. I will try to publish the app within a week and send you the link.

  • Your tutorials are fantastic! So helpful... I'm very grateful :-)

  • HATE THE SITE IN THE DESCRIPTION!

  • All the code is identical to yours except mine does the wrong calculations e.g, 5 x 10 = 30 according to the calculator?

    please help.

  • how do you remove the .00000

  • @TechGeek141 Go to "calcviewcontroller.m" In -(IBAction) ButtonDigitPressed

    and where it says [NSString stringWithFormat:@"2f",current­Number]; put a decimal in front of the "2f" so it only has two digits to the right of the decimal.

  • @TechGeek141 did any of you figure out how to do this?

  • YES! TOUCHDOWN!

  • it worked for me except for every time i used currentNumber, it said there was an error. any tips?

  • How do I do if I want to have a calculater with a comma ?

  • @rstattin

    If you mean having something like 24,201.54...

    Simply use this logic: if the current number/1000 >= 1, then add a comma after the first digit.

    If the number is 1234, say currentNumber/1000 "," + currentNumber/100 + currentNumber/10....etc

  • Comment removed

  • Really good.

    You should explain why you do what you do in all of the code you write.

    Do you have a tutorial that does this?

    Thanks

  • @marcoboru he does explain :)

  • very good!

    congratulations!

  • Thank you, that is very simple but very helpful tutorial.

  • GREAT tutorial, i didn't have a single problem :)

  • Great Video

  • i noticed that you were typing both caps and noncap lines of code, like "IBAction". Is it necessary to do that, or can I get away with "ibaction"?

  • @rwoodsr79 caps is necessary where i use it :)

  • Not working.

  • @marcelinhovr if your having problems download the sample project on our site

  • I have followed all of the steps here and everything was going fine until i had to make the label be the caclulatorScreen outlet then i couldn't drag the outlet to the label please help!!!!

  • Nice video, but i have one question! How do i do if i only want to have two decimals?

  • Great video. Only suggestion I have is to explain what each statement is doing just a little more. I can't speak for anyone else, but I would like to have a better understanding of what I'm doing. Great tutorial though, thank you!

  • Awesome tutorial dude, simple, to the point and well paced, acknowledging the user's ability to pause the video. Wish there were more like it.

  • PLEASE HELP...... HOW DO I RENAME THE BUTTONS? I CANT EVEN TYPE IN THEM. IT SOUNDS LIKE YOUR DOUBLE CLICKING BUT IT DOESNT WORK

  • Nice Tutorial, thank you very much.

  • First ever coding ever and only just got a mac.....

    How are you naming the buttons?

  • Great video, all works properly!!! wonderful!!!

  • GeekyLemon,

    everything works for me except one thing...

    when the user inputs a number larger than 8 numbers the calculator messes up for example if the user inputs 123456789 the calculator screen will read 123456792. i don't know why but I'm told it is because of float. any ideas how to fix this?

  • @mchalo123 change the float to a double

  • Great video tutorial! I was looking for a non-iOS tutorial, but I'll keep this in mind when the time comes (it's inevitable ;D). Thanks!

    Harry.

  • when i run the calculator all that pops up is a table, any ideas?

  • Nice tutorial, thanks! Glad I stuck through the whole video, and the app loaded up with no issues. If I could make a suggestion, it would help to explain things a bit more as you go through: when you explained the "case 1, case 2, etc..." it definitely helped, and more explanation as you go through would help. Looking forward to more tutorials!

  • Great video! Needed someone to guide me through how to build a basic app. I actually understood most of the stuff here immediately. Awesome. Now at least I know how to add 'events' to UI elements, even though they are called 'received actions' :-)

  • I have a question: how do I change the picture of the app it self?

    thanks for the great vid btw, worked great!

  • @BenTurton13 you havent set your distribution profile in the build settings

  • Great tutorial so far, thanks. I'll be appreciated to get more tutorials. Keep it up :)

  • This is just writing code and reading it .. This is a really bad tuorial

  • Thankyou!!!!!!

  • Thanks man! Awesome!

  • Excelent!!!

    

  • I get a lot of errors you don't get, and at 9:46, I don't have the - (void)dealloc

    Please help, I'm pretty sure I did the same as you

  • Those certificates, are they obligatory to put the self made apps to your own devices?

  • Those certificates, are they obligatory to put the self made apps to your own devices?

  • Thank you so much

  • Nice tutorial man :)

    

  • How do you make the curly bracket?

  • @TheGamersGod hold shift and pres the braket button

  • @GeekyLemon

    Well, doesn't work for me, I also get some error, although I am entirely sure I'm doing the same thing as you.

  • Make more tutorials!

  • Notice all the 0s

  • thumbs up bruv..

  • Great tut, easy to follow :)

  • how long do you guys think it takes to be able to say i understand the code language ? i'm starting my first app today

  • Awesome tutorial! <3

    (The sound could be a bit better tho)

  • I get this error

    Thread 1: program received signal "SIGABRT"

    checked all code, just started with xcode last night august 12 2011 but have not been able to get any tutorials to work because it woulf say this. I did a search on what the error means and it says it is impossible to know...WTF is that supposed to mean. If you can help that would be great...also started using a MAC last night too. Been coding sing 2001

  • Cheers, easy to follow instructions ending in success.

  • Hey! Great tutorial dude!

    This is my first ever App I've made with Xcode 4 =D

    One slight problem I'm having though is when the AC button is pressed, it causes the Calculator App to quit. Any ideas why this is - or is this just because its a basic app?

    Thanks!!

  • what language did u use?

  • @pepitox90 Objective-C

  • @HateFilledLies Thanks!

  • hi very good tutorial! but i got a question if you don;t mind. instead of writing and declaring all these varialbles and functions by oursleves , cant we jst use drag technique in viewController? its wat xcode 4 is meant for ,right? just wanna know still a great tutorial cheers!

  • so..I made this mistake and got held up..

    When You open a new file to create your calculator, ensure that you open a "View Based" app and NOT a Windows App.

  • How do you add a decimal place?

  • at 10:15 you forgot to add the space after the "=" sign.

  • how do you get this on the app store

  • it says "use of undeclared indicator 'currentNumber'

  • I tried downloading the project, but it won't download! Can u Plz email it to me?

  • Thanks a lot, it worked like a charm! (:

  • Perfect, thanks. I am new to xCode but I was able to code whilst watching and it worked first time. For me that was great but also I learnt a great deal about the software. Thank you.

  • 1/0 *trollface*

  • I have a Problem: how i make a comma in the calculator?

    Please help me

    

  • great

    

  • great tutorial! is there any chance you could show a tutorial on building a simple note taker app that used core data to show a list of notes and add a new note.

    thanks again

    Tom

  • NOOOO NONE OF THE ACTIONS SHOWED UP!!

    I WENT THROUGH ALL THIS WORK AND NOW NOTHING

    PLEAAASE HELLLP!!!!

  • @xGoldenRule what kind of problem are you having head over to my site where you can download this project

  • @xGoldenRule i have the same problem followed the tutorial perfectly but no actions are happening on input in simulater.

    

  • @xGoldenRule Found it u didn't link your calculated screen in view the the actual object.

  • Thanks Geeky Lemon for a free great tutorial. I'm having one issue. I got the connection all sorted and followed everything along but when once i built the app and press the number i don't get any numbers on the screen. Any Advice?

  • @utar50 Sorry, i figured it out but now i realised i have a little issue with my coding im not sure where to look but when i add any of the symbols like + = etc etc I end up with 42f. Any advice?

  • Now I know how to make programs using Xcode I'm going to buy an apple developer license

  • all of my actions (ex// butttonDigitpressed) are in the "first responder" not the "files owner" also i dont have the calculatorscreen outlet PLEASE HELP i checked my code twice and it seems to match up with yours let me know whats wrong?? thank youu

  • Do you now how to add a decimal?

  • @mdhansen5 did you ever figure out how to do this?

  • Wow, tks so much, I love it. It's my first time with Xcode and your tutorial really got me through quite some basics. Tks again.

    One additional button that I would like to have would be a "," for the calculations with decimals.

  • Thanks, It worked. But there is one thing i am having problems with... I don't know how to compile it and make it into a file that i can out on my iphone and run. Other than that great video!

  • hey great video help me out a lot but how would you had another button to add a decimal?

  • By the way, your tutorials are great! ;)

  • You should do a video on making some simple game. =)

  • Nice tutorial! But how do I download my app to my iPhone 4?

  • @Augustlysgaard purchase a developer licence and download the certificates

  • @GeekyLemon

    Thanks. But where do I do that?

  • @Augustlysgaard buy the £100 app dev liscense

    !

  • You should do a video on making a web browser with downloads.

  • Well, I have one problem. I cant connect the second View Controller with the (main) windows View.

  • you sound like jay off the inbetweeners :D

  • how do you get rid of all the 0's when you press a button?  it just doesn't look clean with them.

  • Where do currentNumber and currentOperation get initialized? Or does xcode set uninitialized ints/floats/doubles to 0?

    I'm just wondering how the action methods actually work and don't throw up some error without an explicit intialization. Or maybe I'm not seeing a key bit of code.

  • I got it to work for the most part. Now the only problem is that only the - and / are working. The + and * are not.

  • Under received actions I only have cancelOperation and cancelInput. Why don't I have the other two?

  • Dude how did you find out how to code?

  • Help Me please when i hit plus the app quits

    

  • This is a great tutorial, however i wish you explained more what each thing meant.

  • Hi I was doing great until I ran it. I pressed the numbers and they all come up as 2. Please help!

  • excellent work, need to understand in detail especially the code language :)

  • great tutorial you the man!

  • Wow.. only used xCode today for the first time ever and built this app easily.. I shall be going through everyone of your tutorials this week and subscribing :) keep up the awesome work

  • Your tutorials are great!

  • dude, another question sorry for bothering you again, but for example if your creating like an alarm clock, and you want to make different themes for your alarm clock, and when people are using it they swipe their fingers to change the alarm clock theme, can you help me with that?

  • Awesome, great tutorial, I was looking for a good tutorial like this for a long time, thanks! but one thing I notice that this calculator is missing a very important button, the " . " button, how do I add that?(it's a stupid question but I'm still a beginner at xcode).

  • Everything works except when i click (X, -, +, =, /) The app crashes?

    Please Help!

  • @TecBookPro Nevermind, fixed it, it was the } there was a blank line before it.

  • Great Tutorial! - First ever app I have built in Xcode

    I made a couple of small tweaks, mainly I rearranged the buttons so the bottom row contains 123 and the top with 789 so it is more like a physical calculator and secondly I changed the action thingy for the buttons to "Touch Up Inside" that means if the user presses the wrong button, they can move off of it before releasing their finger without causing the button to be activated.

  • @camerongray1515 awesome dude nice tweaks glad the tutorial has helped and if you ever submit it to the app store send us the link we would love to check it out

  • @camerongray1515 im 13 and i can do that in around 10 seconds!

  • hey how do you get the calcviewcontroller option

  • @anthropamorphic hey dude what do you mean? for it to be named calcviewcontroller?

  • @GeekyLemon never mind I think I get how to get them but at 00:46 you have the things it the corner calciewcontroller which you later click on

  • @anthropamorphic oh i see the project is name calc so the view controllers are named calc and to get them up you need to click the drop down icon on you project name on the left next to the bluw xcode project icon

  • @GeekyLemon ok thanks :D

  • Very Good Tutorial!!!

    Thanks..!!!

  • Great tutorial!

    Hilarious, I always start with a calculator, too, when delving into a new system or programming language...

    Thanks for sharing this with us, Aaron!

  • Thanks for the tutorial. I am going to use it to build my 1st app.

  • Thank you very much!

    This is what i need!

  • you should make a tutorial on making a pdf viewer

Loading...