Programmatically Getting a Screencapture of any UIView

July 27th, 2009 Posted by: - posted under:Snippets - 27 Comments

Introduction
Hey guys. This post is in response to a comment made in my last post about NSTimers. Techy asked if we could do a post on how to take screenshots programmatically using the iPhone SDK. For this minor project we will be creating a small web browser application that will start at www.google.com, and have a button on a toolbar at the bottom to take a picture of the web view and save …

    READ MORE

    iPhone Programming Tutorial: Animating A Game Sprite

    July 24th, 2009 Posted by: - posted under:Tutorials - 65 Comments

    One thing I have noticed about many of the games in the app store is they lack animation. Of course, the huge companies like Sega and PopCap have some pretty amazing animation, but what about us indie iPhone game developers?

    Well, Apple has made it quite simple to do animations. I really feel this method is often overlooked. I will show you in just a few lines of code, how to completely animate your game images. I will walk you through …

      READ MORE

      NSTimer: The Poor Man’s Threading – Code Snapshot

      July 23rd, 2009 Posted by: - posted under:Snippets - 34 Comments

      Introduction
      Hey guys. So usually the posts we put up here involve screencasts and presentations, but we are going to start also posting small less time consuming pieces for the site. Today I bring to you a small project involving NSTimers. Today we are going to build an app that represents a horse race. We will create a view with 6 small UIView squares with a blue background at the bottom of the screen, we will use a timer to move …

        READ MORE

        Voices That Matter iPhone Conference | Special iCodeBlog Reader Discount

        July 22nd, 2009 Posted by: - posted under:Articles - 3 Comments


        Calling all iPhone Developers. Pearson Education has hooked iCodeBlog up with a sweet discount to this year’s Voices . The conference will take place in Boston starting October 17th. Here is some info from them (Including a coupon code for our readers)
        Coming to you direct from Addison-Wesley Professional, which has published some of the leading books in the field, the is taking place October …

          READ MORE

          Code Snippet: Prevent The iPhone From Sleeping

          July 22nd, 2009 Posted by: - posted under:Snippets - 7 Comments

          The code below will prevent the iPhone from dimming its screen and ultimately going to sleep. Use it wisely as you don’t want your application becoming notorious for being a battery hog

          [UIApplication sharedApplication].idleTimerDisabled = YES;

          Happy iCoding!

            READ MORE

            Anyone else having issues with MPMoviePlayerController in iPhone OS 3.0?

            July 21st, 2009 Posted by: - posted under:Articles - 27 Comments

            Ok, so I’m currently updating an application for work and am getting some strange behavior with MPMoviePlayerController when trying to stream video. The problem is:
            When the user presses the “Done” button on the player during the buffering stage (right after it finishes saying “loading video…” but before the video starts playing), the player hides and the audio (for the video) begins to play in the background. At this point, there are 3 ways for it to stop.

            Start playing …

              READ MORE

              Server Upgrade Aftermath

              July 17th, 2009 Posted by: - posted under:Articles - 12 Comments

              The server upgrade is finally complete. And as a result, iCodeblog is faster and more reliable than ever. We have just finished linking back up the assets (videos, screenshots, etc…) and are ready to start blogging again.
              For those of you who are wondering what hosting we decided to go with… Well, we want to wait a few months and see how things go before disclosing this. But I can honestly say, we are very happy with the speed …

                READ MORE

                Site Up Host Moved

                July 15th, 2009 Posted by: - posted under:Articles - 5 Comments

                Today we experienced a server outage at our hosting provider. We were unable to get a clear idea of a time for resolution and decided it was best to move hosts to a scalable cloud-based service that can grow with our increasing traffic.
                Thank you to everyone for your patience. We’ve almost completed our migration–just waiting on our assets to upload which include our very large screencast files. Please give us a few more hours and then report anything odd you …

                  READ MORE

                  iPhone Programming Tutorial: Integrating Twitter Into Your iPhone Applications

                  July 9th, 2009 Posted by: - posted under:Tutorials - 139 Comments


                  If you are a developer (which you most likely are if you are reading this) you probably have (or should have) a Twitter account. With Twitter getting so much attention lately, you would be crazy to not include some sort of Twitter integration into your own iPhone application.
                  There are many ways applications can be made more social by including Twitter. For example, you could make the application auto-tweet when you unlock a special item in a game, …

                    READ MORE

                    Look Familiar?

                    July 8th, 2009 Posted by: - posted under:Articles - 100 Comments

                    Ok, so I was perusing the App Store the other day to stumble upon this gem of an application. See the screenshot below.

                    If you have been on iCodeBlog before, you might recognize this “game” from a tutorial that I wrote about writing an iPhone game (link). One thing to note here is the company name is BlaBlaIncTech (not iCodeBlog) meaning I did not submit this nor did I give permission to do so. I find it …

                      READ MORE