免费学习该课程!
今天就开通帐号,24,600 门业界名师课程任您挑!
Get BASIC with swift strings
- [Instructor] A few tips ago, we went under the hood with unicode characters and their relationship to the swift string type. For most that's great theory, but how does it apply to strings on characters? When I started programming back in the 1980s, I had three string functions in Basic. rightString, leftString, and midString. Let's create a simple extension to string that will let you use mid string using string ranges, and then discuss right and left string, equivalents and how these get returned. So go ahead and download the exercise file, and you'll find I embedded a playground at the top here, so go into the playground, and you're not going to need any of the other stuff so I'm going to get rid of it all, and if it hasn't yet make sure that the auto here is set to manually run instead of automatically run. That makes life a lot easier for ya, and let's go up into the code here, and what we did was create an extension, and then under that extension I made one function for you to…
内容
-
-
-
(已锁定)
Use Xcode Git repositories6 分钟 59 秒
-
(已锁定)
Read and write text files6 分钟 47 秒
-
(已锁定)
Prototyping MapKit in iPad Playgrounds8 分钟 32 秒
-
(已锁定)
Use the Xcode 9 simulators4 分钟 24 秒
-
(已锁定)
Layout and iPhone X5 分钟 35 秒
-
(已锁定)
Use markers instead of pins for map annotations4 分钟 32 秒
-
(已锁定)
Read JSON files7 分钟 59 秒
-
(已锁定)
Copy and paste with the pasteboard5 分钟 25 秒
-
(已锁定)
Create navigation controllers6 分钟 39 秒
-
(已锁定)
Make a camera on iPad7 分钟 50 秒
-
(已锁定)
Tricks with Asset Manager6 分钟 40 秒
-
(已锁定)
Array tricks10 分钟 56 秒
-
(已锁定)
Apple watch and the context menu6 分钟 25 秒
-
(已锁定)
Image and color literals6 分钟 48 秒
-
(已锁定)
Why use uint8?10 分钟 14 秒
-
(已锁定)
Using hex color9 分钟 39 秒
-
(已锁定)
Deep dive into dictionaries9 分钟 11 秒
-
(已锁定)
Tapping a map7 分钟 3 秒
-
(已锁定)
Update old apps3 分钟 47 秒
-
(已锁定)
Using Apple Pencil8 分钟 42 秒
-
(已锁定)
Animated emoji on the Apple Watch5 分钟 46 秒
-
(已锁定)
The navigation bar and back title4 分钟 34 秒
-
(已锁定)
Using property lists7 分钟 44 秒
-
(已锁定)
Using popovers8 分钟 23 秒
-
(已锁定)
Attributed string jazz9 分钟 18 秒
-
(已锁定)
3D text with SceneKit5 分钟 54 秒
-
(已锁定)
Find a language quickly from text8 分钟 29 秒
-
(已锁定)
UIColor class extensions5 分钟 46 秒
-
(已锁定)
Using Date and TimeInterval6 分钟 5 秒
-
(已锁定)
Time zones and date components7 分钟 40 秒
-
(已锁定)
Timer accuracy6 分钟 25 秒
-
(已锁定)
Animate maps5 分钟 17 秒
-
(已锁定)
Xcode 10 storyboard changes7 分钟 46 秒
-
(已锁定)
Use code snippets8 分钟 40 秒
-
(已锁定)
Changes to playgrounds in Xcode 106 分钟 42 秒
-
(已锁定)
Permission changes to notifications6 分钟 45 秒
-
(已锁定)
Customizing the tab bar8 分钟 31 秒
-
(已锁定)
The Settings bundle9 分钟 26 秒
-
(已锁定)
Use the speech synthesizer6 分钟 45 秒
-
(已锁定)
Make round buttons7 分钟 45 秒
-
(已锁定)
Recursion and changing UIViews7 分钟 46 秒
-
(已锁定)
Lay out iPad landscape and multitasking apps7 分钟 52 秒
-
(已锁定)
Embed table views6 分钟 36 秒
-
(已锁定)
Make a toggle button7 分钟 37 秒
-
(已锁定)
Drop shadows6 分钟 24 秒
-
(已锁定)
Blur and vibrancy effects8 分钟 48 秒
-
(已锁定)
Inequalities in Auto Layout for storyboards5 分钟 52 秒
-
(已锁定)
Make an animated settings drawer6 分钟 57 秒
-
(已锁定)
Views in playgrounds6 分钟 52 秒
-
(已锁定)
Launch the Settings app4 分钟 45 秒
-
(已锁定)
Draw paths in UIViews8 分钟 4 秒
-
(已锁定)
CALayer masks7 分钟 14 秒
-
(已锁定)
Protocols and time pickers6 分钟 38 秒
-
(已锁定)
Convert strings to time intervals11 分钟 13 秒
-
(已锁定)
Sliders as knobs7 分钟 36 秒
-
(已锁定)
Fix stackview disasters8 分钟 9 秒
-
(已锁定)
Using haptics4 分钟 57 秒
-
(已锁定)
Test flight9 分钟 8 秒
-
(已锁定)
Replacing segmented controls9 分钟 50 秒
-
(已锁定)
Ranges6 分钟 48 秒
-
(已锁定)
Unicode characters8 分钟 36 秒
-
(已锁定)
String and NSString characters8 分钟 49 秒
-
(已锁定)
Thrown errors9 分钟 41 秒
-
(已锁定)
Actions in table views7 分钟 5 秒
-
(已锁定)
Ducking sound in AVAudioSession4 分钟 35 秒
-
(已锁定)
Make and use closures7 分钟 4 秒
-
(已锁定)
Using ARC6 分钟 20 秒
-
(已锁定)
Create a project without a storyboard7 分钟 29 秒
-
(已锁定)
Learn how to rename identifiers3 分钟 22 秒
-
(已锁定)
Add a split-view controller programmatically7 分钟 8 秒
-
(已锁定)
Add dynamic type for accessibility6 分钟 35 秒
-
(已锁定)
Quickly identify a UIColor to RGB or HSB system6 分钟 27 秒
-
(已锁定)
Launch an alert from a closure and what to do about it5 分钟 57 秒
-
(已锁定)
Connect outlets and actions without the Assistant Editor8 分钟 32 秒
-
(已锁定)
Get BASIC with swift strings7 分钟 56 秒
-
(已锁定)
Convert CSV files10 分钟 7 秒
-
(已锁定)
Strings to doubles8 分钟 14 秒
-
(已锁定)
Enums13 分钟 4 秒
-
(已锁定)
Selection in text views5 分钟 30 秒
-
(已锁定)
Generate QR codes5 分钟 13 秒
-
(已锁定)
The ? and ?? operators in Swift5 分钟 47 秒
-
(已锁定)
String interpolation6 分钟 59 秒
-
(已锁定)
Xcode changes5 分钟 52 秒
-
(已锁定)
Use Dark Mode on storyboards4 分钟 45 秒
-
(已锁定)
Use SF Symbols8 分钟 42 秒
-
(已锁定)
Structs6 分钟 18 秒
-
(已锁定)
Quick SwiftUI8 分钟 55 秒
-
(已锁定)
Working with sets7 分钟 28 秒
-
(已锁定)
Segue Actions4 分钟 38 秒
-
(已锁定)
Checkboxes in SwiftUI6 分钟 15 秒
-
(已锁定)
To-do lists in SwiftUI4 分钟 27 秒
-
(已锁定)
Quick Help in SwiftUI6 分钟 29 秒
-
(已锁定)
Models in SwiftUI6 分钟 38 秒
-
(已锁定)
SwiftUI in Xcode Playgrounds6 分钟 39 秒
-
(已锁定)
Keyboard shortcuts for Xcode 114 分钟 44 秒
-
(已锁定)
Basic PencilKit5 分钟 45 秒
-
(已锁定)
Setter and Getters5 分钟 15 秒
-
(已锁定)
UITextViews and coordinators6 分钟 22 秒
-
(已锁定)
Dark Mode in code6 分钟 1 秒
-
(已锁定)
Candle effects7 分钟 53 秒
-
(已锁定)
Reality Composer7 分钟
-
(已锁定)
RealityKit5 分钟 44 秒
-
(已锁定)
NumberFormatter6 分钟 7 秒
-
(已锁定)
Tuples4 分钟 42 秒
-
(已锁定)
Protocols6 分钟 16 秒
-
(已锁定)
Property wrappers5 分钟 19 秒
-
(已锁定)
iPad to macOS6 分钟 11 秒
-
(已锁定)
Type properties5 分钟 11 秒
-
(已锁定)
Singletons and TabViewControllers4 分钟 59 秒
-
(已锁定)
UITabViewControllers in Swift Playgrounds4 分钟 25 秒
-
(已锁定)
Motion effects7 分钟 27 秒
-
(已锁定)
SwiftUI animation8 分钟 24 秒
-
(已锁定)
@Binding in public6 分钟 38 秒
-
(已锁定)
SwiftUI ScrollView5 分钟 30 秒
-
(已锁定)
MapKit points of interest6 分钟 14 秒
-
(已锁定)
UIKit extensions and pseudo SwiftUI6 分钟 12 秒
-
(已锁定)
SF Symbols configuration5 分钟 44 秒
-
(已锁定)
Custom SF Symbols8 分钟 7 秒
-
(已锁定)
Use SwiftUI GeometryReader4 分钟 15 秒
-
(已锁定)
Proportional SwiftUI views8 分钟 22 秒
-
(已锁定)
Button selection panels in SwiftUI5 分钟 35 秒
-
(已锁定)
Custom modifiers in SwiftUI6 分钟 22 秒
-
(已锁定)
Dependency injection6 分钟 28 秒
-
(已锁定)
Xcode themes7 分钟 16 秒
-
(已锁定)
Basic generics5 分钟 58 秒
-
(已锁定)
Selections in watchOS7 分钟 23 秒
-
(已锁定)
ForEach closures in SwiftUI6 分钟 7 秒
-
(已锁定)
SwiftUI borders and shapes8 分钟 54 秒
-
(已锁定)
SwiftUI gradients11 分钟 13 秒
-
(已锁定)
Special parameters8 分钟 49 秒
-
(已锁定)
Overriding operators8 分钟 29 秒
-
(已锁定)
Arrays with map, filter, and reduce7 分钟 21 秒
-
(已锁定)
Basic measurements9 分钟 26 秒
-
(已锁定)
Key paths7 分钟 9 秒
-
(已锁定)
Recursive structs8 分钟 38 秒
-
(已锁定)
Outline views in SwiftUI5 分钟 42 秒
-
(已锁定)
TextEditor and Scribble4 分钟 51 秒
-
(已锁定)
Color pickers8 分钟 54 秒
-
(已锁定)
Local notifications in SwiftUI8 分钟 41 秒
-
(已锁定)
Enums with values7 分钟
-
(已锁定)
Changes to enums in Swift6 分钟 15 秒
-
(已锁定)
SwiftUI transitions for modal views4 分钟 55 秒
-
(已锁定)
Date pickers6 分钟 54 秒
-
(已锁定)
SwiftUI labels3 分钟 26 秒
-
(已锁定)
SwiftUI maps6 分钟 5 秒
-
(已锁定)
Collection views for SwiftUI3 分钟 50 秒
-
(已锁定)
Scribble bugs4 分钟 48 秒
-
(已锁定)
The joys of UUID5 分钟 8 秒
-
(已锁定)
SwiftUI swipe gesture4 分钟 2 秒
-
(已锁定)
Holiday special: Let it snow6 分钟 17 秒
-
(已锁定)
Embed images in SwiftUI text5 分钟 44 秒
-
(已锁定)
Make a widget, part 1: Presenting9 分钟 16 秒
-
(已锁定)
Make a widget, part 2: Families8 分钟 45 秒
-
(已锁定)
Make a widget, part 3: Timelines8 分钟 45 秒
-
(已锁定)
UICollectionView lists11 分钟 24 秒
-
(已锁定)
UICollectionView layout9 分钟 41 秒
-
(已锁定)
Menus on UIButtons10 分钟 27 秒
-
(已锁定)
MatchedGeometryEffect modifier8 分钟 50 秒
-
(已锁定)
Multicolor symbols7 分钟 33 秒
-
(已锁定)
Multiplatform Swift UI8 分钟 10 秒
-
(已锁定)
Documents in SwiftUI8 分钟 51 秒
-
(已锁定)
Keyboard shortcut modifier7 分钟 3 秒
-
(已锁定)
Text, Dynamic Type, and accessibility7 分钟 40 秒
-
(已锁定)
Photos picker7 分钟 51 秒
-
(已锁定)
What is Hashable?6 分钟 11 秒
-
(已锁定)
Add stickers to your app8 分钟 7 秒
-
(已锁定)
iPad Playgrounds...for Mac?6 分钟 14 秒
-
(已锁定)
Lazy variables4 分钟 15 秒
-
(已锁定)
Core graphics in SwiftUI4 分钟 59 秒
-
(已锁定)
SwiftUI checkboxes9 分钟 3 秒
-
(已锁定)
Core Graphics datatypes10 分钟 22 秒
-
(已锁定)
Setup for UIKit Drawing8 分钟 2 秒
-
(已锁定)
Practical CGRects9 分钟 44 秒
-
(已锁定)
Paths and contexts in CoreGraphics7 分钟 52 秒
-
(已锁定)
Distance-based graphics in CoreGraphics6 分钟 50 秒
-
(已锁定)
Recursive graphics6 分钟 17 秒
-
(已锁定)
CoreGraphics curves7 分钟 27 秒
-
(已锁定)
SwftUI maps and map zoom9 分钟 5 秒
-
(已锁定)
Maps and auto zoom6 分钟 29 秒
-
(已锁定)
Add pages in SwiftUI4 分钟 27 秒
-
(已锁定)
Closures in structs5 分钟 35 秒
-
(已锁定)
Xcode 13 changes5 分钟 22 秒
-
(已锁定)
New UIButton tricks7 分钟 11 秒
-
(已锁定)
SwiftUI Changes for iOS 159 分钟 41 秒
-
(已锁定)
SF Symbols 37 分钟 7 秒
-
(已锁定)
Swfit UI binding in lists3 分钟 46 秒
-
(已锁定)
TimelineView8 分钟 50 秒
-
(已锁定)
SwiftUI image concurrency8 分钟 44 秒
-
(已锁定)
SwiftUI Playgrounds9 分钟 11 秒
-
(已锁定)
Custom widgets with intents, part 18 分钟 3 秒
-
(已锁定)
Custom widgets with intents, part 27 分钟 55 秒
-
(已锁定)
Custom widgets with intents, part 38 分钟 2 秒
-
(已锁定)
Color for accessibility6 分钟 6 秒
-
(已锁定)
UIStackView programmatically6 分钟 14 秒
-
(已锁定)
The new date formatter8 分钟 5 秒
-
(已锁定)
Number formatters8 分钟 58 秒
-
(已锁定)
Links in text4 分钟 23 秒
-
(已锁定)
Accessibility labels10 分钟 25 秒
-
(已锁定)
So long, and thanks for all the views!2 分钟 31 秒
-
(已锁定)