CollectionViewTuto is the application created in the CodeFlow tutorial on celedev.com.
CollectionViewTuto is a UICollectionView-based CodeFlow application written entirely in Lua. This This application displays the individual words of a text file in a UICollectionView and includes the support for zooming and rotating a word cell.
CollectionViewTuto shows many aspects of the interaction between Lua code and Objective-C in CodeFlow. It also illustrates the use of a text resource from the Lua code in CodeFlow.
A Mac with Celedev CodeFlow version 0.9.18 or later and Xcode 6.2 or later.
An iPhone or iPad, with iOS 8 or later, for running the application (alternatively you can use the Xcode simulator).
How to use this code sample
Open the CodeFlow project for this sample application.
This will automatically update the associated Xcode project, so that paths and other build settings are correctly set for your environment.
Open the associated Xcode project. You can do this in CodeFlow with the menu command
Program -> Open Xcode Project.
Run the application on a device or in the simulator.
In CodeFlow, select the application in the
Targetpopup menu in the project window toolbar. The app stops on a breakpoint at the first line of the Lua program.
Click on the
Continuebutton in the toolbar (or use the CodeFlow debugger for stepping in the program)
Enjoy the power of live coding with CodeFlow
Some libraries / header files in the sample app Xcode project are missing
⇒ Fix: open the corresponding CodeFlow project, and CodeFlow will update the associated Xcode project, so that paths and libraries are correctly set.
This application is provided under the MIT License (MIT)
Copyright (c) 2014-2015 Celedev.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.