Join Scott Gardner for an in-depth discussion in this video Bind UI elements: Part 1, part of Reactive Programming in iOS with RxSwift.
- View Offline
- [Voiceover] As a reminder, I've already set up this…in all other projects throughout this course…using CocoaPods to import the RxSwift and RxCocoa libraries.…You'll want to first build the project to make these…libraries available.…And if you'd like to learn how to set up and use CocoaPods…in your own projects, here's a link to a helpful…getting started guide.…I'm starting out in a basic iOS single view project…with several controls and views…and a tapGestureRecognizer added to the storyboard scene.…
These are wired up as IBOutlets in the view controller.…For most of these UI control or UI view elements,…there's a matching UI label that I'll use to display…some indication of interaction with the controller view.…There's nothing special about these UI elements…except that I have subclassed UITextView and UIButton…just to add rounded borders to both of them.…I've also defined a couple properties including…a DisposeBag instance…and an NSDateFormatter instance which I'll use to format…and NSDate instance as a string later.…
Learn reactive programming with Reactive Extensions for Swift and iOS by following along with author Scott Gardner. Scott introduces the Reactive Extensions libraries for Swift and Cocoa Touch, and shows how to work with observable sequences, bind user interface and data elements, perform networking operations, debug Rx code, and more.
- Using the Reactive Extensions library
- Working with observable sequences
- Binding UI and data elements
- Binding table and collection views
- Error handling