Fix for IOS 8 Beta 5. Revised sample project. Components are no longer functions.