Open Source: Library For Gesture Based Tableview Interaction Like The Clear App

Several in the past I’ve mentioned some great libraries modeled after the UI of the Path app which has been somewhat of a game changer when it comes to UI design on the iPhone.

Another app that has been touted for having a very elegant and intuitive interface is the Clear to-do list  app for iPhone .

The intuitiveness of the tableviews within the app have been lauded because of how they respond to different pulling, pinching, and swiping gestures.

You can see a demonstration in this video review:

James Tang has created a library based on the tableviews within the clear app.  While the library does not yet implement all the gestures available for tableviews it’s great to look at and see how James used gesture recognizers within the tableview and implement your own.

You can find the library on Github here.

If you want to check out the Clear app you can find it on iTunes here.

Looks like another great pattern for iOS UI design.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Tutorial: Integrating Cocos2D 2.0 With iOS 5 Storyboards

While they take some getting used to iOS 5 storyboards are an excellent way of laying out an app.

The upcoming release of Cocos2D 2.0 also takes some getting used to, and along with the switch to using OpenGL ES 2.0 there are a number of changes to the API.

One of the changes made in Cocos2D 2.0 is that your Cocos2D directory is actually a UIViewController implementing the CCDirectorDelegate and this means that you can use your Cocos2D views directly with the storyboard feature.

Jerrod Putman has written a quick tutorial and example project showing just how easy it is that you can find on his blog.

This makes Cocos2D that much more useful as now you can easily integrate Cocos2D views directly within any type of app without having to make any major changes.

Added to the Xcode storyboard tutorial page.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Open Source: Library For Easier iOS Custom Image And Video Filters Using OpenGL ES 2.0 Shaders

With iOS 5 core image filters were added to the iOS 5 sdk providing a high level API for filtering images, and video.

Unfortunately, left out on  is the key ability to create completely custom image filters.  You can however do this using OpenGL ES directly, but this requires a ton of boiler plate code, and is a pretty complicated process.

fortunately Brad Larson who created the popular open source app Molecules which is great for learning OpenGL ES has developed a library making it considerably easier to create high performance custom image filters using OpenGL ES 2.0.

The library is GPUImage includes several example video filters so you can see exactly how it’s done.

You can find the library on its Github repository here.

You can find out more about the library, it’s architecture, and how to use it on Brad’s site here.

I’ve received quite a few inquiries about how to create custom video filters using Core Image, and while that can’t be done – using the GPUImage framework provides a nice head start doing so with OpenGL ES 2.0

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Tutorial: Creating A One Figure Rotation Gesture Recognizer For A Rotary Knob Control On iOS

In the past I’ve mentioned a few open source iOS controls for creating rotary knobs, but have never gotten into creating a gesture recognizer enabling this type of user control.

Today I came across a tutorial explaining the math needed to create this type of control, and doing so using a gesture recognizer.  This approach is also slightly different in that you can’t slide anywhere in the knob area, but rather click a point in the control and move that point within the knob.

The tutorial is from Melle and can be found on his website here.

An interesting read if you’ve wanted to know how to how to create a rotary knob control or use iOS’s gesture recognizer API.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Open Source: Library For Easily Playing A Youtube Video In An MPMoviePlayer

Embedding Youtube videos within your apps is typically done with a UIWebView, but it is possible to do play Youtube videos within an MPMoviePlayer.

The trick is getting to the MP4 video file provided by Youtube, and I’ve come across a library that does this automatically for a provided URL.

You simply need to specify the URL, and size of the player using this library where you would otherwise be using a UIWebView to play the videos, and if the MP4 file can’t be reached a UIWebView is used.

Included with the library is a working example.

You can find the library known as PSYoutubeExtractor on Github here.

The library is from Peter Steinberger who also created the excellent stacking iPad UIViewController and Push Pop Press style view libraries that have been mentioned previously.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Open Source: Category For Easy Embedding Of PDF Images In iOS Apps For Scalable Images

Creating images for the different iOS device screen sizes can be a tedious task.  The great thing  about vector images is that they can be scaled to any size and still maintain quality.

This is where this excellent category for embedding PDF images comes in – you can use a tool such as Photoshop, and export vector images.

The category adds imageWithPDFNamed constructors to the UIImage class allowing you to easily create a UIImage from a PDF image.

The category is from Nigel Timothy Barber and you can find it on Github here with an example.

Matt Gemmell wrote a nice writeup on how to export your images for use with the category that you can check out here.

Very useful for those buttons and icons you don’t want to be bothered with creating different sized images for.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Tutorial: Quickly Building An Action Game With Physics Using TexturePacker and Physics Editor

In the past I’ve mentioned the SpriteHelper, and LevelHelper tools for creating physics based games on the iOS platform.

Recently I had a chance to try out another set of tools from Andreas Loew known as Texture Packer, and Physics Editor.  Originally, I held back from checking these tools out because I already had the other tools – but really they serve a different purpose.

Texture Packer,  and Physics Editor are great for those times when you want to put together a spritesheet, or obtain the physics properties for a set of objects very quickly.  They are not specifically built for laying out complete levels for complete games.

What I really liked was the simplicity of the tools – there’s no learning curve here you can very quickly and easily export your sprites, and physics properties.

They also support a very wide variety of formats, and game engines supporting nearly iOS every game engine that has been mentioned on this site.  You also get support for Flash game development.

You can visit the PhysicsEditor and Texture Packer websites and try out the tools.

Andreas has also posted an excellent tutorial using the Texture Packer and Physics editor tools to create an action game with physics very quickly.

Here’s a screenshot of the game in action:

< You can find the  tutorial in 3 parts: Pt.1, Pt.2, Pt.3.

A great way to learn how to use the Texture Packer and Physics Editor tools, you can download evaluation versions and decide whether they are for you.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Daily Update for February 16, 2012

It’s the TUAW Daily Update, your source for Apple news in a convenient audio format. You’ll get all the top Apple stories of the day in three to five minutes for a quick review of what’s happening in the Apple world.

You can listen to today’s Apple stories by clicking the inline player (requires Flash) or the non-Flash link below. To subscribe to the podcast for daily listening through iTunes, click here.

No Flash? Click here to listen.

Daily Update for February 16, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 16:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Hero Academy Dwarves update coming Feb 22, for $1.99

Hero Academy has fallen a bit out of my gaming attention lately (truth be told, Triple Town is stealing most of my iOS gaming time these days, probably more than is healthy), but it’s still an excellent free-to-play title, and I still have about 15 games going on at any given moment. Currently, the turn-based strategy multiplayer title boasts two different teams, the Humans and the Dark Elves, but later this month the game is getting a third team to play with: The Dwarves. The new race will go in a steampunk direction, with rocket launchers and firearms, and will not only specialize in area-of-effect attacks, but gain nice bonuses from the on-board power-ups. The Dwarves will be available via an in-app purchase of $1.99.

A few players have complained about the game’s balance, saying that the Dark Elves seemed slightly more powerful than the core Human fighters, and that Robot Entertainment was just trying to sell in-app purchases for a more powerful team. And while I’m sure we’ll see that argument again, I’m also sure Robot Entertainment is trying as best they can to balance the teams out.

Robot also says that it’s working on making sure the title doesn’t eat up the iPhone’s battery any more than any other games, so we might see some performance updates in this release as well. Game Center integration for leaderboards and achievements should also be coming with this release, but there’s no mention of a universal build, so iPad users will have to wait on that one. The new update should be out on February 22.

Hero Academy Dwarves update coming Feb 22, for $1.99 originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 16:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Mountain Lion drops support for several older Mac models

Every new version of OS X comes with harsh news for owners of older Macs: “Your Mac is too old. You’re stuck with your current OS. Forever.” For Mac OS X Leopard in 2007, anyone who owned a Mac with a processor slower than 867 MHz was stuck with Tiger. In 2009, Snow Leopard made the biggest (and most controversial) shift yet and dropped support for all PowerPC Macs. In 2011, Lion dropped support for Macs that didn’t have 64-bit Intel Core 2 Duo processors, which included most of the first-generation Intel Macs.

The march of progress continues in OS X Mountain Lion, and with it comes a new set of minimum requirements. An anonymous developer clued us into the minimum requirements for OS X 10.8, and there’s bad news for some older Mac owners. Mountain Lion will only run on the following Macs:

  • iMac (mid 2007 or later)
  • MacBook (13-inch Aluminum, 2008), (13-inch, Early 2009 or later)
  • MacBook Pro (13-inch, Mid-2009 or later), (15-inch, 2.4/2.2 GHz), (17-inch, Late 2007 or later)
  • MacBook Air (Late 2008 or later)
  • Mac Mini (Early 2009 or later)
  • Mac Pro (Early 2008 or later)
  • Xserve (Early 2009)

This means the following Macs which are supported under OS X Lion will not be able to run Mountain Lion (model identifiers in parentheses):

  • Late 2006 iMacs (iMac5,1, iMac5,2, iMac6,1)
  • All plastic MacBooks that pre-date the unibody redesign (MacBook2,1, MacBook3,1, MacBook4,1)
  • MacBook Pros released prior to June 2007 (MacBookPro2,1, MacBookPro2,2)
  • The original MacBook Air (MacBookAir1,1)
  • The Mid-2007 Mac mini (Macmini2,1)
  • The original Mac Pro and its 8-core 2007 refresh (MacPro1,1, MacPro2,1)
  • Late 2006 and Early 2008 Xserves (Xserve1,1, Xserve2,1)

If you’re running Lion and not sure if your Mac is supported under Mountain Lion, go to the Apple Menu and select “About this Mac.” Click “More Info,” then click “System Report.” You’ll be presented with a window showing a Hardware Overview, and your Model Identifier will be the second entry from the top. If your Model Identifier matches the list above, then regrettably OS X Lion is the end of the road for your Mac.

The loss of support for all pre-unibody plastic MacBooks and the first-gen MacBook Air are likely to come as a big shock to many Mac users; personally I know many people who own the pre-unibody MacBooks. Dropping support for these models in Mountain Lion appears to have something to do with the Intel integrated graphics processors from that era; no Mac with an Intel GMA 950 or Intel GMA X3100 graphics processor will be supported in Mountain Lion.

My Early 2008 MacBook Pro dodged the bullet… this time. I have a feeling many of you out there will not be so lucky, and I have a sneaking suspicion that OS X 10.9 will drop support for my Mac, too. It’s rough news to be sure, but keep in mind that OS X Lion won’t spontaneously combust once Mountain Lion goes live; even if your Mac is stuck with Lion for the rest of its operational life, you can still look forward to several more years of software support for your current OS.

Mountain Lion drops support for several older Mac models originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 15:39:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Tim Cook discusses Mountain Lion with the Wall Street Journal

Many media outlets got a sneak preview of Apple’s next version of OS X, Mountain Lion, and the Wall Street Journal was no exception. The Journal was treated to a preview from Apple CEO Tim Cook himself. He discussed with the Journal the basic philosophy behind OS X updates going forward: “We see that people are in love with a lot of apps and functionality here,” Cook says of the iPhone. “Anywhere where that makes sense, we are going to move that over to Mac.”

Cook considers iOS and OS X as having “incremental functionality,” which fits in with how Steve Jobs characterized the iPad at its 2010 introduction; the iPad is a stepping stone between the iPhone and the Mac, and OS X Lion was Apple’s first step at bringing some of iOS’s features to the Mac. Mountain Lion is merely the next iteration of that process.

“We took a logical pass at what the user is going to experience using these products to make it all make sense,” Phil Schiller told the Journal in another interview. By changing the names of certain applications (Address Book to Contacts, iChat to Messages, iCal to Calendar, etc.) and bringing features like Notification Center, AirPlay, and iCloud document sharing to the Mac, Apple seems to have put consistency of experience at the forefront of its design goals. This is a smart move for Apple; with considerably more iPhone users than Mac users out there, creating a wholly integrated platform where iPhone users can sit in front of a Mac for the first time and feel instantly familiar with it is sure to drive Mac adoption even higher in the years to come.

Whether this convergence will also apply to hardware is another story. The Journal asked Cook if Macs will eventually run on the same ARM microprocessors as iOS devices, but Tim Cook gave a decidedly noncommittal “We think about everything. We don’t close things off.”

When the Journal mentioned Microsoft’s forthcoming Windows 8 update, Cook shrugged it off. “I don’t really think anything Microsoft does puts pressure on Apple,” he said, calling any pressure that Apple may feel “self-induced.” Indeed, the news about Mountain Lion comes at a time when Apple is the only major PC manufacturer experiencing positive growth in the industry; sales of non-Mac PCs have declined year-over-year, with some manufacturers experiencing steep losses in revenue.

OS X 10.8 Mountain Lion is already available as a developer preview, and Apple says it will be available for sale in “late summer.” Now that the company has the resources to do so, it appears to be committed to yearly upgrades for OS X on the Mac alongside its yearly upgrades to iOS.

Tim Cook discusses Mountain Lion with the Wall Street Journal originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 15:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple won previous legal victory over Proview

Apple has been fighting a trademark infringement battle in China over the use of the term “iPad”. The opponent? A Chinese display manufacturer by the name of Proview. Although Apple has recently lost the ability to sell iPads in several Chinese cities due to Proview requesting injunctions against the tablet Goliath, the Wall Street Journal is reporting that the High Court of the Hong Kong Special Administrative Region upheld Apple’s claim to the iPad trademark in mainland China last July.

Proview is viewed as a company that is trying to stay alive by using the courts to extract money from Apple. The monitor manufacturer will reportedly be delisted from the Hong Kong Stock Exchange in June if it is unable to improve its finances.

The court decision noted that Proview had “breached an earlier agreement to transfer the iPad name to Apple,” electing instead to not transfer the trademark to Apple and asking Apple to pay US$10 million for it. Proview then sued Apple in late 2011; Apple countered with a lawsuit of its own in mainland China, but the courts found in favor of Proview.

Proview has recently filed complaints with the Chinese customs bureau to attempt iPads from being imported and/or shipped overseas, which would cut off Apple’s supply of the popular tablet to the rest of the world. Fortunately for Apple, the customs officials noted that such a ban on shipments would be “difficult to implement” due to the popularity of the iPad in China and the size of the Chinese market.

For Apple, the finding of the Hong Kong High Court from last July may be all the ammunition it needs to finally rid itself of the irritating Proview trademark suits.

Apple won previous legal victory over Proview originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 15:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Mac App: Dine-O-Matic chooses a restaurant for you

Eating at a restaurant is fun but getting a consensus from a group of diners can be a hassle. Offload the responsibly to your iPhone with Dine-O-Matic from the Iconfactory (currently on sale for US$0.99), which is more than happy to choose a restaurant for the whole gang.

The app combines retro graphics (think of the corner diner), a game-like “spinner” and handy maps integration to make the experience fun. To get started, enter your favorite restaurants. There are two ways to do this. The first is to flip the main screen over and enter the restaurant list. Tap the “+” button in the upper right-hand corner to create a new entry. Type in info like name, category, price range, address and more.

The easier way is the built-in Maps integration. From the main screen, tap the location button to open the map. Dine-O-Matic notices your location and highlights local restaurants. Tap anyone to add it to your list (you still must enter the category and price range manually). You can also enter a name or type, like “pizza,” in the search field.

Once you’re set up, make a choice! Each category is represented by a “neon sign” icon. Give it a tap and watch it spin through the options, landing on a random place in your list. A slip appears with the restaurant’s name, phone number (tap to call) and address (tap to view on a map). You can even sort by price range.

My kids enjoyed flipping the spinner (“I’ll stop when it says ‘Chinese food’) and my wife and I did, in fact, base last night’s dinner on its decision. Dine-O-Matic looks great, with black-and-white check “tile” and buzzing neon and works as advertised. Plus, you can declare “The phone has spoken!” and silence an indecisive crowd. Dine-O-Matic is available from The App Store now.

Daily Mac App: Dine-O-Matic chooses a restaurant for you originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 14:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iCloud gains 15 million users in 21 days, now at 100 million users

Apple CEO Tim Cook, speaking at the Goldman Sachs Technology and Internet Conference yesterday, noted that iCloud now has over 100 million users. What’s incredible is that just a month ago, Cook mentioned during the first quarter earnings call that the sync service had 85 million users.

iCloud, which was introduced last year with iOS 5 and Mac OS X 10.7 Lion, provides synchronization of calendars, address books, browser bookmarks, and other applications. A number of other applications are beginning to support sync through iCloud, and Apple’s latest updates to the iOS version of the iWork apps — Pages, Numbers, and Keynote — show deeper links into the service as a “storage in the sky” location.

The increase of 15 million users in just 21 days is incredible — a 17.6% increase in three weeks. Cook commented during yesterday’s conference that iCloud is the “strategy for the next decade” of Apple’s business. The relatively seamless way that iCloud makes the flow of information between devices was the main reason that Apple developed the service, and it appears that it will continue to be a major emphasis for the company going into the future.

iCloud gains 15 million users in 21 days, now at 100 million users originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 16 Feb 2012 13:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments