how can i see this out put in iPhone

Discussion in 'iOS Programming' started by hrithik123, Feb 22, 2010.

  1. hrithik123 macrumors member

    Joined:
    Feb 3, 2010
    #1
    i want to run this simple out put in iphone

    what can i do?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    1) Why? It presents no UI that any user can ever see.

    2) Join the developer program at http://developer.apple.com and follow the instructions to get a provisioning profile, signing certificates etc (note you need to pay $99 for this). You can put that on your own phone but Apple are never going to approve anything without a UI for the store.
     
  3. hrithik123 thread starter macrumors member

    Joined:
    Feb 3, 2010
    #3
    i am very new in this

    so i want to know when i build application then how its looks in iphone so for now i just want to see how can i see out put on IPHONE
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I already told you: follow the link, sign up to the program. I can already tell you how that will look on the iPhone though: it won't look like anything as there is no UI. It will launch, and then immediately return to the springboard.
     
  5. jclardy macrumors 68040

    jclardy

    Joined:
    Oct 6, 2008
    #5
    NSLog writes to the console, so to see the output you have to use the console on your computer. In XCode go to Run->Console and the output will show there when you run the program.

    The iPhone does not have any built in way to display console output.
     
  6. hrithik123 thread starter macrumors member

    Joined:
    Feb 3, 2010
    #6
    ok so if i build game for Iphone using objective c so i have to check Run->Console ...

    for see this in Iphone i have to pay $99 then i see this in iphone?

    am i right?
     
  7. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    Or you could build a User Interface so as the user can actually use the game. Both for the simulator and the iPhone.
    Yes, you have to pay to be able to put your code on the phone but without a real user interface (NSLog will not work) you won't see anything.

    I suggest before you spend any money download the tools from developer.apple.com and run through the tutorials and samples.
     
  8. ethical macrumors 68000

    Joined:
    Dec 22, 2007
    #8
    I think I remember that example from the Steve Kochan book on learning Objective-C? Am I right?

    You're quite a way off making iPhone applications, as most of that book is about theory, and uses terminal applications as appose to applications with a user interface.

    I suggest finishing the book (or at least reading up to and including chapter 15), then looking at the book 'Begining iPhone 3 Development'.

    The book you're reading now will give you a grasp of the syntax and some of the major features of the language...then the second book will teach you how to apply it to iPhone applications.
     
  9. hrithik123 thread starter macrumors member

    Joined:
    Feb 3, 2010
    #9
    so i complete that 2 book then i am able to make good iphone application?
     
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
    Well, being able to make a good iPhone application is more dependent on your skills and talent as a developer than your ability to complete books.
     
  11. ethical macrumors 68000

    Joined:
    Dec 22, 2007
    #11
    It'll certainly give you a much better chance, yes. Providing you understand the content. Good luck :)
     
  12. skochan macrumors regular

    Joined:
    Apr 1, 2006
    Location:
    California
    #12
    @lukenn: Ha, my fraction example is becoming famous! :)

    @hrithik123: If you are reading my book, then you are right at the beginning, and as noted, the book uses the console for output throughout most of the text to focus on the language and not on building a user interface with Interface Builder.

    In Chapter 21 you'll learn how to get the output on the iPhone. At that point an iPhone fraction calculator app is developed.

    Good luck and don't forget there's lots of support at the forum for the book at classroomM.com/objective-c.

    Cheers,

    Steve Kochan
     
  13. AndyCodez macrumors regular

    Joined:
    Aug 6, 2009
    #13
    Does anyone ever try to look up information on the interwebz before posting a post thats been done 100000000 times.
     
  14. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #14
    I don't. But perhaps I'm an anomaly. :D

    I think part of the problem is that we act as enablers by answering their questions quickly rather than taking the time to point them to the myriad of other threads on the same topic.
     
  15. AndyCodez macrumors regular

    Joined:
    Aug 6, 2009
    #15
    Lol I can see what you mean :p I still have so much to learn but since there are a ton of iPhone devs, there is tons of content out there that a simple Google search will give them what they need haha. Gotta love the interwebz!
     

Share This Page