Dev Center

dev_xcodesmall dev_simulatorsmall dev_interfacesmall dev_instrumentssmall

Welcome to the Developer Center

This is a place, where I would like to share with you my knowledge and how to start developing iPhone / iPod Touch Applications. You will find here many useful examples, sample codes, tricks, tutorials and more. Enjoy!

Questions?

If you want to ask me about anything, don’t hesitate send me an email to krzysiekr@mac.com . I will post new tutorials for frequent questions.

Do you like it?


List of contents:

  1. Useful information
    1. Learn how to use Xcode
      a tool where you put all your code
    2. Learn how to use Interface Builder
      a tool helping you to design a user interface
    3. Learn how to use iPhone Simulator
      a tool to quick debug your applications
    4. Learn how to use Instruments
      a tool to check the “quality”, test performance of your applications
    5. How to install apps on devices without the certificate
      tutorial with useful information how to debug or distribute your application without paying $99 for the certificates
  2. Creating a simple applications
    1. Hello World
    2. Simple Calculator
  3. Creating programmatically…
    1. a switch [ UISwitch ]
    2. a spinner [ UIActivityIndicator ]
      also UIActivityIndicator in status bar
    3. a label [ UILabel ]
  4. Useful code
    1. Touches
      handling touch events, touch begins, moves, ends, coordinates
    2. Alerts
      displaying UIAlertView, multiple buttons
    3. Saving data
      how to save data and restore it after the application terminates
    4. Loading pictures
      using UIImagePickerController to load photo from albums and camera
    5. Creating a nice glass buttons
      learn how to create the stunning buttons with UISegmentedControl
    6. Timers
      using NSTimer to repeat, animate or load an action after given delay
    7. Making screenshots
      save the screen content or a part of it into the camera roll
    8. View transitions
      Use transitions to switch the views. Fade transition included.
    9. Logs
      Learn how to keep track of you application progress.
    10. Memory Management
      No Garbage Collection in iPhone SDK. Learn how to deal with the memory usage and leaks.
    11. Passing data between classes
      Learn how to pass object’s and variables from one controller to the other.
    12. Tables
      everything about tables (UITableView)
    13. Autorotating the interface
      how to create an application running in both portrait and landscape mode and more
    14. Accelerometer
      determine the device orientation and handle events using UIAccelerometerDelegate
    15. Creating a view programmatically
      learn, how to create user interfaces without Interface Builder
    16. Animations and transformations
      scale, move, rotate and object, smooth animations, perform task after animation is finished
    17. Random numbers
      generate any random number within the given range
    18. Colors
      color / colour, textures, alpha, RGB colors
    19. Status bar
      change the color, orientation or hide the status bar
    20. Vibration
      how to trigger vibration on iPhone
    21. Short sounds
      how to convert your music and play it on your iPhone
    22. Playing background music
      how to play a music, loop it, fade the volume
    23. Planning a bigger application
      learn how to start programming a bigger applications and easily navigate between any two views

15 comments

  1. Galen Sowels says:

    Just imagine I read it twice. While I am not as accomplished on this subject, I match with your closings because they make sense. Gives Thanks and goodluck to you.

  2. Piotrek says:

    Siema rodaku :D . Mam pytanko :) . czy pojawi si

    • Chris says:

      Hi Piotrek!

      For sure one day I will find some free time to finish them, but it’s really difficult for a guy with so many things on his head – talking about me right know.

      As you mentioned, everything about tables tutorial is finished, but since 3.0 some things changed, like not cell.text, but cell.textLabel.text and so on.

      Regards
      Chris

  3. blacksheep says:

    blacksheep Says:

    hi, i wrote an app in the same complicated way.
    could you please give an example how to alloc several sounds once?

    bell_left_Sound = [[SoundEffect alloc] initWithContentsOfFile:[mainBundle pathForResource:@"bell_left" ofType:@"caf"]];
    bell_right_Sound = [[SoundEffect alloc] initWithContentsOfFile:[mainBundle pathForResource:@"bell_right" ofType:@"caf"]];

    - (IBAction)bell_left: (id)sender {
    SoundEffect *currentSoundEffect= bell_left_Sound;
    [currentSoundEffect play];
    }
    - (IBAction)bell_right: (id)sender {
    SoundEffect *currentSoundEffect= bell_right_Sound;
    [currentSoundEffect play];
    }

    thanx 4 help

  4. Thomas Tran says:

    My hat to you. What a great site with some of the best tutorials and tips.

  5. James says:

    Really great site, which content helps me a lot.
    Have you already thought of posting code examples which would cover graphic (or animation) and/or networking issues?

    James

    • Chris says:

      Hi James!
      When I make my tutorials I don’t rewrite the documentation, but I try to share with you my opinions, best examples of using some classes or tricks. That means, I need to use on my own “the part of SDK” in the project, before I start talking about it. I develop, so I gain knowledge and experience that is required to talk about something and not to be called a noob, lame (no offence, I’m talking about me).

      I’ve never need any graphics to be drawn using quartz 2d or using 3d in openSth. If you need, visit the sites linked in “For developers” category on the right.

      • James says:

        Ok, I see!
        Nethertheless I’m still looking forward to new code examples from you covering other issues.

        In the meantime your “For developers” links helped me a lot.
        Thanks!

  6. Maik says:

    That was exactly what im looking for. Really great site with a good tutorial.

    Continue pls with it!

    Greetings
    Maik

    • Chris says:

      Sure, I will, soon I will publish sth bigger about UITextField. if you have ideas, send them to me. Regards, Chris.

  7. IgorD says:

    Chris,

    you’ve built yourself a great site. I’ve spend several hours here today and I’ll most likely come back.

    Igor

Leave a Reply