The Navigation bar contains a Search button that will present SearchOptionsViewController modally.The Search view controller, SearchViewController has a read-only UITextView that contains an excerpt from your boss’ private diary.Here’s the basic overview of the search-and-replace functionality of the app: You’ll start by implementing the most straightforward use of regular expressions: text search. Performing text search: highlighting, as well as search and replace.The final app will cover two common use cases with regular expressions: Here are a few sample screen shots demonstrating the final product: Your job in this tutorial is to add the required regular expressions into this app to make it shine (and hopefully avoid being thrown into a vat of molten hot magma). The UI for the app is mostly complete, but the core functionality of the app relies on regular expressions, which it doesn’t have… yet! You’re going to build a diary app for your boss - a Super Villain! Everyone knows that Super Villains need to keep track of all their diabolical plans for world domination, right? There’s lots of planning to do and you, as the minion, are part of these plans - your part being to build the app for the other plans! Open the iRegex starter project in Xcode and run it. Use the Download Materials button at the top or bottom of this tutorial to download the starter project. Now that you know the basics, it’s time to use regular expressions in an app. Fortunately, we have you covered! Check out this Introduction to Regular Expressions tutorial here. If you haven’t heard of regular expressions - also called regex - before, it’s probably worth wrapping your head around the basics before continuing with this tutorial. REGEX FOR SWIFT CONVERTER UPDATEUpdate note: Tom Elliott updated this tutorial for Swift 4.2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |