iOS Notes for Professionals book

    Amazing collection of free programming books

    收集中
    免费
    Amazing collection of free programming books

    The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified

    Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners

    https://goalkicker.com/

    章节目录

    1-1Content list
    1-2About
    1-3Chapter 1: Getting started with iOS Development
    1-4Section 1.1: Creating a default Single View Application
    1-5Section 1.2: Hello World
    1-6Section 1.3: Xcode Interface
    1-7Section 1.4: Create your first program in Swift 3
    1-8Chapter 2: UILabel
    1-9Section 2.1: Create a UILabel
    1-10Section 2.2: Number of Lines
    1-11Section 2.3: Set Font
    1-12Section 2.4: Text Color
    1-13Section 2.5: Background Color
    1-14Section 2.6: Size to fit
    1-15Section 2.7: Text alignment
    1-16Section 2.8: Calculate Content Bounds (for i.e. dynamic cell heights)
    1-17Section 2.9: Label Attributed Text
    1-18Section 2.10: Clickable Label
    1-19Section 2.11: Variable height using constraints
    1-20Section 2.12: LineBreakMode
    1-21Section 2.13: Add shadows to text
    1-22Section 2.14: Changing Text in an Existing Label
    1-23Section 2.15: Auto-size label to fit text
    1-24Section 2.16: Get UILabel's size strictly based on its text and font
    1-25Section 2.17: Highlighted and Highlighted Text Color
    1-26Section 2.18: Justify Text
    1-27Section 2.19: Dynamic label frame from unknown text length
    1-28Chapter 3: UILabel text underlining
    1-29Section 3.1: Underlining a text in a UILabel using Objective C
    1-30Section 3.2: Underlining a text in UILabel using Swift
    1-31Chapter 4: attributedText in UILabel
    1-32Section 4.1: HTML text in UILabel
    1-33Section 4.2: Set dierent property to text in single UILabel
    1-34Chapter 5: UIButton
    1-35Section 5.1: Creating a UIButton
    1-36Section 5.2: Attaching a Method to a Button
    1-37Section 5.3: Setting Font
    1-38Section 5.4: Set Image
    1-39Section 5.5: Get UIButton's size strictly based on its text and font
    1-40Section 5.6: Disabling a UIButton
    1-41Section 5.7: Set title
    1-42Section 5.8: Set title color
    1-43Section 5.9: Horizontally aligning contents
    1-44Section 5.10: Getting the title label
    1-45Section 5.11: Adding an action to an UIButton via Code (programmatically)
    1-46Chapter 6: UIDatePicker
    1-47Section 6.1: Create a Date Picker
    1-48Section 6.2: Setting Minimum-Maximum Date
    1-49Section 6.3: Modes
    1-50Section 6.4: Setting minute interval
    1-51Section 6.5: Count Down Duration
    1-52Chapter 7: UILocalNotification
    1-53Section 7.1: Scheduling a local notification
    1-54Section 7.2: Presenting a local notification immediately
    1-55Section 7.3: Managing local notifications using UUID
    1-56Section 7.4: Registering for local notifications
    1-57Section 7.5: what's new in UILocalNotification with iOS10
    1-58Section 7.6: Responding to received local notification
    1-59Section 7.7: Register and Schedule Local Notification in Swift 3.0 (iOS 10)
    1-60Chapter 8: UIImage
    1-61Section 8.1: Creating UIImage
    1-62Section 8.2: Comparing Images
    1-63Section 8.3: Gradient Image with Colors
    1-64Section 8.4: Convert UIImage to/from base64 encoding
    1-65Section 8.5: Take a Snapshot of a UIView
    1-66Section 8.6: Change UIImage Color
    1-67Section 8.7: Apply UIColor to UIImage
    1-68Section 8.8: Creating and Initializing Image Objects with file contents
    1-69Section 8.9: Resizable image with caps
    1-70Section 8.10: Gradient Background Layer for Bounds
    1-71Chapter 9: Convert NSAttributedString to UIImage
    1-72Section 9.1: NSAttributedString to UIImage Conversion
    1-73Chapter 10: UIImagePickerController
    1-74Section 10.1: Generic usage of UIImagePickerController
    1-75Chapter 11: UIImageView
    1-76Section 11.1: UIImage masked with Label
    1-77Section 11.2: Making an image into a circle or rounded
    1-78Section 11.3: How the Mode property aects an image
    1-79Section 11.4: Animating a UIImageView
    1-80Section 11.5: Create a UIImageView
    1-81Section 11.6: Change color of an image
    1-82Section 11.7: Assigning an image to a UIImageView
    1-83Chapter 12: Resizing UIImage
    1-84Section 12.1: Resize any image by size & quality
    1-85Chapter 13: Cut a UIImage into a circle
    1-86Section 13.1: Cut a image into a circle - Objective C
    1-87Section 13.2: SWIFT 3 Example
    1-88Chapter 14: UITableView
    1-89Section 14.1: Self-Sizing Cells
    1-90Section 14.2: Custom Cells
    1-91Section 14.3: Separator Lines
    1-92Section 14.4: Delegate and Datasource
    1-93Section 14.5: Creating a UITableView
    1-94Section 14.6: Swipe to Delete Rows
    1-95Section 14.7: Expanding & Collapsing UITableViewCells
    1-96Chapter 15: UITableViewController
    1-97Section 15.1: TableView with dynamic properties with tableviewCellStyle basic
    1-98Section 15.2: TableView with Custom Cell
    1-99Chapter 16: UIRefreshControl TableView
    1-100Section 16.1: Set up refreshControl on tableView:
    1-101Section 16.2: Objective-C Example
    1-102Chapter 17: UITableViewCell
    1-103Section 17.1: Xib file of UITableViewCell
    1-104Chapter 18: Custom methods of selection of UITableViewCells
    1-105Section 18.1: Distinction between single and double selection on row
    1-106Chapter 19: Custom methods of selection of UITableViewCells
    1-107Section 19.1: Distinction between single and double selection on row
    1-108Chapter 20: UIView
    1-109Section 20.1: Make the view rounded
    1-110Section 20.2: Using IBInspectable and IBDesignable
    1-111Section 20.3: Taking a snapshot
    1-112Section 20.4: Create a UIView
    1-113Section 20.5: Shake a View
    1-114Section 20.6: Utilizing Intrinsic Content Size
    1-115Section 20.7: Programmatically manage UIView insertion and deletion into and from another UIView
    1-116Section 20.8: Create UIView using Autolayout
    1-117Section 20.9: Animating a UIView
    1-118Section 20.10: UIView extension for size and frame attributes
    1-119Chapter 21: Snapshot of UIView
    1-120Section 21.1: Getting the Snapshot
    1-121Section 21.2: Snapshot with subview with other markup and text
    1-122Chapter 22: UIAlertController
    1-123Section 22.1: AlertViews with UIAlertController
    1-124Section 22.2: Action Sheets with UIAlertController
    1-125Section 22.3: Adding Text Field in UIAlertController like a prompt Box
    1-126Section 22.4: Highlighting an action button
    1-127Section 22.5: Displaying and handling alerts
    1-128Chapter 23: UIColor
    1-129Section 23.1: Creating a UIColor
    1-130Section 23.2: Creating a UIColor from hexadecimal number or string
    1-131Section 23.3: Color with Alpha component
    1-132Section 23.4: Undocumented Methods
    1-133Section 23.5: UIColor from an image pattern
    1-134Section 23.6: Lighter and Darker Shade of a given UIColor
    1-135Section 23.7: Make user defined attributes apply the CGColor datatype
    1-136Chapter 24: UITextView
    1-137Section 24.1: Set attributed text
    1-138Section 24.2: Change font
    1-139Section 24.3: Auto Detect Links, Addresses, Dates, and more
    1-140Section 24.4: Change text
    1-141Section 24.5: Change text alignment
    1-142Section 24.6: UITextViewDelegate methods
    1-143Section 24.7: Change text color
    1-144Section 24.8: Remove extra paddings to fit to a precisely measured text
    1-145Section 24.9: Getting and Setting the Cursor Postition
    1-146Section 24.10: UITextView with HTML text
    1-147Section 24.11: Check to see if empty or nil
    1-148Chapter 25: UITextField Delegate
    1-149Section 25.1: Actions when a user has started/ended interacting with a textfield
    1-150Section 25.2: UITextField - Restrict textfield to certain characters
    1-151Chapter 26: UINavigationController
    1-152Section 26.1: Embed a view controller in a navigation controller programmatically
    1-153Section 26.2: Popping in a Navigation Controller
    1-154Section 26.3: Purpose
    1-155Section 26.4: Pushing a view controller onto the navigation stack
    1-156Section 26.5: Creating a NavigationController
    1-157Chapter 27: UIGestureRecognizer
    1-158Section 27.1: UITapGestureRecognizer
    1-159Section 27.2: UITapGestureRecognizer (Double Tap)
    1-160Section 27.3: Adding a Gesture recognizer in the Interface Builder
    1-161Section 27.4: UILongPressGestureRecognizer
    1-162Section 27.5: UISwipeGestureRecognizer
    1-163Section 27.6: UIPinchGestureRecognizer
    1-164Section 27.7: UIRotationGestureRecognizer
    1-165Chapter 28: UIBarButtonItem
    1-166Section 28.1: Creating a UIBarButtonItem in the Interface Builder
    1-167Section 28.2: Creating a UIBarButtonItem
    1-168Section 28.3: Bar Button Item Original Image with no Tint Color
    1-169Chapter 29: UIScrollView
    1-170Section 29.1: Scrolling content with Auto Layout enabled
    1-171Section 29.2: Create a UIScrollView
    1-172Section 29.3: ScrollView with AutoLayout
    1-173Section 29.4: Detecting when UIScrollView finished scrolling with delegate methods
    1-174Section 29.5: Enable/Disable Scrolling
    1-175Section 29.6: Zoom In/Out UIImageView
    1-176Section 29.7: Scroll View Content Size
    1-177Section 29.8: Restrict scrolling direction
    1-178Chapter 30: UIStackView
    1-179Section 30.1: Center Buttons with UIStackview
    1-180Section 30.2: Create a horizontal stack view programmatically
    1-181Section 30.3: Create a vertical stack view programmatically
    1-182Chapter 31: Dynamically updating a UIStackView
    1-183Section 31.1: Connect the UISwitch to an action we can animate switching between a horizontal or vertical layout of the image views
    1-184Chapter 32: UIScrollView with StackView child
    1-185Section 32.1: A complex StackView inside Scrollview Example
    1-186Section 32.2: Preventing ambiguous layout
    1-187Section 32.3: Scrolling to content inside nested StackViews
    1-188Chapter 33: UIScrollView AutoLayout
    1-189Section 33.1: ScrollableController
    1-190Section 33.2: UIScrollView dynamic content size through Storyboard
    1-191Chapter 34: UITextField
    1-192Section 34.1: Get Keyboard Focus and Hide Keyboard
    1-193Section 34.2: Dismiss keyboard when user pushes the return button
    1-194Section 34.3: Hide blinking caret
    1-195Section 34.4: Input accessory view (toolbar)
    1-196Section 34.5: Moving scroll when UITextView becomes first responder
    1-197Section 34.6: KeyboardType
    1-198Section 34.7: Change placeholder color and font
    1-199Section 34.8: Replace keyboard with UIPickerView
    1-200Section 34.9: Create a UITextField
    1-201Section 34.10: Getting and Setting the Cursor Position
    1-202Section 34.11: Dismiss Keyboard
    1-203Section 34.12: Initialize text field
    1-204Section 34.13: Autocapitalization
    1-205Section 34.14: Set Alignment
    1-206Chapter 35: Custom UITextField
    1-207Section 35.1: Custom UITextField for Filtering Input Text
    1-208Section 35.2: Custom UITextField to Disallow All Actions like Copy, Paste, etc
    1-209Chapter 36: UIViewController
    1-210Section 36.1: Subclassing
    1-211Section 36.2: Access the container view controller
    1-212Section 36.3: Set the view programmatically
    1-213Section 36.4: Instantiate from a Storyboard
    1-214Section 36.5: Create an instance
    1-215Section 36.6: Adding/removing a child view controller
    1-216Chapter 37: UISwitch
    1-217Section 37.1: Set Image for On/O state
    1-218Section 37.2: Set On / O
    1-219Section 37.3: Set Background Color
    1-220Section 37.4: Set Tint Color
    1-221Chapter 38: UICollectionView
    1-222Section 38.1: Create a UICollectionView
    1-223Section 38.2: UICollectionView - Datasource
    1-224Section 38.3: Basic Swift example of a Collection View
    1-225Section 38.4: Manage Multiple Collection view with DataSource and Flowlayout
    1-226Section 38.5: UICollectionViewDelegate setup and item selection
    1-227Section 38.6: Create a Collection View Programmatically
    1-228Section 38.7: Swift - UICollectionViewDelegateFlowLayout
    1-229Section 38.8: Performing batch updates
    1-230Chapter 39: UISearchController
    1-231Section 39.1: Search Bar in Navigation Bar Title
    1-232Section 39.2: Search Bar in Table View Header
    1-233Section 39.3: Implementation
    1-234Section 39.4: UISerachController in Objective-C
    1-235Chapter 40: UITabBarController
    1-236Section 40.1: Create an instance
    1-237Section 40.2: Navigation Controller with TabBar
    1-238Section 40.3: Tab Bar color customizing
    1-239Section 40.4: Changing Tab Bar Item Title and Icon
    1-240Section 40.5: Create Tab Bar controller programmatically without Storyboard
    1-241Section 40.6: UITabBarController with custom color selection
    1-242Chapter 41: UIWebView
    1-243Section 41.1: Create a UIWebView instance
    1-244Section 41.2: Determining content size
    1-245Section 41.3: Load HTML string
    1-246Section 41.4: Making a URL request
    1-247Section 41.5: Load JavaScript
    1-248Section 41.6: Stop Loading Web Content
    1-249Section 41.7: Reload Current Web Content
    1-250Section 41.8: Load Document files like .pdf, .txt, .doc etc
    1-251Section 41.9: Load local HTML file in webView
    1-252Section 41.10: Make links That inside UIWebview clickable
    1-253Chapter 42: UIActivityViewController
    1-254Section 42.1: Initializing the Activity View Controller
    1-255Chapter 43: UIControl - Event Handling with Blocks
    1-256Section 43.1: Introduction
    1-257Chapter 44: UISplitViewController
    1-258Section 44.1: Master and Detail View interaction using Delegates in Objective C
    1-259Chapter 45: UISlider
    1-260Section 45.1: UISlider
    1-261Section 45.2: SWIFT Example
    1-262Section 45.3: Adding a custom thumb image
    1-263Chapter 46: UIStoryboard
    1-264Section 46.1: Getting an instance of UIStoryboard programmatically
    1-265Section 46.2: Open another storyboard
    1-266Chapter 47: UIPageViewController
    1-267Section 47.1: Create a horizontal paging UIPageViewController programmatically
    1-268Section 47.2: A simple way to create horizontal page view controllers ( infinite pages )
    1-269Chapter 48: UISplitViewController
    1-270Section 48.1: Interacting Between Master and Detail View using Delegates in Objective C
    1-271Chapter 49: UIFont
    1-272Section 49.1: Declaring and initializing UIFont
    1-273Section 49.2: Changing the font of a label
    1-274Chapter 50: UIDevice
    1-275Section 50.1: Get iOS device model name
    1-276Section 50.2: Identifying the Device and Operating
    1-277Section 50.3: Getting the Device Orientation
    1-278Section 50.4: Getting the Device Battery State
    1-279Section 50.5: Using the Proximity Sensor
    1-280Section 50.6: Getting Battery Status and Battery Level
    1-281Chapter 51: Make selective UIView corners rounded
    1-282Section 51.1: Objective C code to make selected corner of a UiView rounded
    1-283Chapter 52: Custom UIViews from XIB files
    1-284Section 52.1: Wiring elements
    1-285Section 52.2: How to make custom reusable UIView using XIB
    1-286Chapter 53: UIBezierPath
    1-287Section 53.1: Designing and drawing a Bezier Path
    1-288Section 53.2: How to apply corner radius to rectangles drawn by UIBezierPath
    1-289Section 53.3: How to apply shadows to UIBezierPath
    1-290Section 53.4: How to create a simple shapes using UIBezierPath
    1-291Section 53.5: UIBezierPath + AutoLayout
    1-292Section 53.6: pie view & column view with UIBezierPath
    1-293Chapter 54: UIPickerView
    1-294Section 54.1: Basic example
    1-295Section 54.2: Changing pickerView Background Color and text color
    1-296Chapter 55: UIFeedbackGenerator
    1-297Section 55.1: Trigger Impact Haptic
    1-298Chapter 56: UIAppearance
    1-299Section 56.1: Set appearance of all instances of the class
    1-300Section 56.2: Appearance for class when contained in container class
    1-301Chapter 57: UIKit Dynamics with UICollectionView
    1-302Section 57.1: Creating a Custom Dragging Behavior with UIDynamicAnimator
    1-303Chapter 58: UIPheonix - easy, flexible, dynamic & highly scalable UI framework
    1-304Section 58.1: Example UI Components
    1-305Section 58.2: Example Usage
    1-306Chapter 59: UIKit Dynamics
    1-307Section 59.1: Flick View Based on Gesture Velocity
    1-308Section 59.2: "Sticky Corners" Eect Using UIFieldBehaviors
    1-309Section 59.3: UIDynamicBehavior Driven Custom Transition
    1-310Section 59.4: Shade Transition with Real-World Physics Using UIDynamicBehaviors
    1-311Section 59.5: Map Dynamic Animation Position Changes to Bounds
    1-312Section 59.6: The Falling Square
    1-313Chapter 60: UI Testing
    1-314Section 60.1: Accessibility Identifier
    1-315Section 60.2: Adding Test Files to Xcode Project
    1-316Section 60.3: Disable animations during UI Testing
    1-317Section 60.4: Lunch and Terminate application while executing
    1-318Section 60.5: Rotate devices
    1-319Chapter 61: Change Status Bar Color
    1-320Section 61.1: For non-UINavigationBar status bars
    1-321Section 61.2: For UINavigationBar status bars
    1-322Section 61.3: For ViewController containment
    1-323Section 61.4: If you cannot change ViewController's code
    1-324Section 61.5: Changing the status bar style for the entire application
    1-325Chapter 62: UISegmentedControl
    1-326Section 62.1: Creating UISegmentedControl via code
    1-327Chapter 63: Passing Data between View Controllers
    1-328Section 63.1: Using the Delegate Pattern (passing data back)
    1-329Section 63.2: Using Segues (passing data forward)
    1-330Section 63.3: Passing data backwards using unwind to segue
    1-331Section 63.4: Passing data using closures (passing data back)
    1-332Section 63.5: Using callback closure(block) passing data back
    1-333Section 63.6: By assigning property (Passing data forward)
    1-334Chapter 64: Managing the Keyboard
    1-335Section 64.1: Create a custom in-app keyboard
    1-336Section 64.2: Dismiss a keyboard with tap on view
    1-337Section 64.3: Managing the Keyboard Using a Singleton + Delegate
    1-338Section 64.4: Moving view up or down when keyboard is present
    1-339Section 64.5: Scrolling a UIScrollView/UITableView When Displaying the Keyboard
    1-340Chapter 65: Checking for Network Connectivity
    1-341Section 65.1: Creating a Reachability listener
    1-342Section 65.2: Add observer to network changes
    1-343Section 65.3: Alert when network becomes unavailable
    1-344Section 65.4: Alert when connection becomes a WIFI or cellular network
    1-345Section 65.5: Verify if is connected to network
    1-346Chapter 66: Accessibility
    1-347Section 66.1: Make a View Accessible
    1-348Section 66.2: Accessibility Frame
    1-349Section 66.3: Layout Change
    1-350Section 66.4: Accessibility Container
    1-351Section 66.5: Hiding Elements
    1-352Section 66.6: Screen Change
    1-353Section 66.7: Announcement
    1-354Section 66.8: Ordering Elements
    1-355Section 66.9: Modal View
    1-356Chapter 67: Auto Layout
    1-357Section 67.1: Space Views Evenly
    1-358Section 67.2: Center Constraints
    1-359Section 67.3: Setting constraints programmatically
    1-360Section 67.4: UILabel & Parentview size According to Text in UILabel
    1-361Section 67.5: UILabel Intrinsic Size
    1-362Section 67.6: Visual Format Language Basics: Constraints in Code!
    1-363Section 67.7: Resolve UILabel Priority Conflict
    1-364Section 67.8: How to animate with Auto Layout
    1-365Section 67.9: NSLayoutConstraint: Contraints in code!
    1-366Section 67.10: Proportional Layout
    1-367Section 67.11: Mixed usage of Auto Layout with non-Auto Layout
    1-368Section 67.12: How to use Auto Layout
    1-369Chapter 68: MKMapView
    1-370Section 68.1: Change map-type
    1-371Section 68.2: Simulate a custom location
    1-372Section 68.3: Set Zoom/Region for Map
    1-373Section 68.4: Local search implementation using MKLocalSearch
    1-374Section 68.5: OpenStreetMap Tile-Overlay
    1-375Section 68.6: Scroll to coordinate and zoom-level
    1-376Section 68.7: Working With Annotation
    1-377Section 68.8: Add MKMapView
    1-378Section 68.9: Show UserLocation and UserTracking example
    1-379Section 68.10: Adding Pin/Point Annotation on map
    1-380Section 68.11: Adjust the map view's visible rect in order to display all annotations
    1-381Chapter 69: NSArray
    1-382Section 69.1: Convert Array into json string
    1-383Chapter 70: NSAttributedString
    1-384Section 70.1: Creating a string that has custom kerning (letter spacing)
    1-385Section 70.2: Change the color of a word or string
    1-386Section 70.3: Removing all attributes
    1-387Section 70.4: Appending Attributed Strings and bold text in Swift
    1-388Section 70.5: Create a string with strikethrough text
    1-389Chapter 71: Convert HTML to NSAttributed string and vice verse
    1-390Section 71.1: Objective C code to convert HTML string to NSAttributedString and Vice Versa
    1-391Chapter 72: NSTimer
    1-392Section 72.1: Creating a Timer
    1-393Section 72.2: Manually firing a timer
    1-394Section 72.3: Timer frequency options
    1-395Section 72.4: Invalidating a timer
    1-396Section 72.5: Passing of data using Timer
    1-397Chapter 73: NSDate
    1-398Section 73.1: NSDateFormatter
    1-399Section 73.2: Date Comparison
    1-400Section 73.3: Get Historic Time from NSDate (eg: 5s ago, 2m ago, 3h ago)
    1-401Section 73.4: Get Unix Epoch time
    1-402Section 73.5: Get NSDate from JSON Date format "/Date(1268123281843)/"
    1-403Section 73.6: Get time cycle type (12-hour or 24-hour)
    1-404Section 73.7: Get Current Date
    1-405Section 73.8: Get NSDate Object N seconds from current date
    1-406Section 73.9: UTC Time oset from NSDate with TimeZone
    1-407Section 73.10: Convert NSDate that is composed from hour and minute (only) to a full NSDate
    1-408Chapter 74: NSNotificationCenter
    1-409Section 74.1: Removing Observers
    1-410Section 74.2: Adding an Observer
    1-411Section 74.3: Posting a Notification with Data
    1-412Section 74.4: Add and remove observer for name
    1-413Section 74.5: Posting a Notification
    1-414Section 74.6: Observing a Notification
    1-415Section 74.7: Adding/Removing an Observer with a Block
    1-416Chapter 75: NSURLSession
    1-417Section 75.1: Objective-C Create a Session And Data Task
    1-418Section 75.2: Setting up background configuration
    1-419Section 75.3: Simple GET request
    1-420Section 75.4: Sending a POST Request with arguments using NSURLSession in Objective-C
    1-421Chapter 76: NSUserDefaults
    1-422Section 76.1: Setting values
    1-423Section 76.2: UserDefaults uses in Swift 3
    1-424Section 76.3: Use Managers to Save and Read Data
    1-425Section 76.4: Saving Values
    1-426Section 76.5: Clearing NSUserDefaults
    1-427Section 76.6: Getting Default Values
    1-428Chapter 77: NSHTTPCookieStorage
    1-429Section 77.1: Store and read the cookies from NSUserDefault
    1-430Chapter 78: NSURLConnection
    1-431Section 78.1: Delegate methods
    1-432Section 78.2: Synchronous Request
    1-433Section 78.3: Asynchronous request
    1-434Chapter 79: NSURL
    1-435Section 79.1: How to get last string component from NSURL String
    1-436Section 79.2: How to get last string component from URL (NSURL) in Swift
    1-437Chapter 80: NSData
    1-438Section 80.1: Converting NSData to HEX string
    1-439Section 80.2: Creating NSData objects
    1-440Section 80.3: Converting NSData to other types
    1-441Chapter 81: NSInvocation
    1-442Section 81.1: NSInvocation Objective-C
    1-443Chapter 82: NSUserActivity
    1-444Section 82.1: Creating a NSUserActivity
    1-445Chapter 83: NSPredicate
    1-446Section 83.1: Form validation using NSPredicate
    1-447Section 83.2: Creating an NSPredicate Using predicateWithBlock
    1-448Section 83.3: Creating an NSPredicate Using predicateWithFormat
    1-449Section 83.4: Creating an NSPredicate with Substitution Variables
    1-450Section 83.5: NSPredicate with `AND`, `OR` and `NOT` condition
    1-451Section 83.6: Using NSPredicate to Filter an Array
    1-452Chapter 84: NSBundle
    1-453Section 84.1: Getting Bundle by Path
    1-454Section 84.2: Getting the Main Bundle
    1-455Chapter 85: CAAnimation
    1-456Section 85.1: Animate a view from one position to another
    1-457Section 85.2: Animate View - Toss
    1-458Section 85.3: Push View Animation
    1-459Section 85.4: Revolve View
    1-460Section 85.5: Shake View
    1-461Chapter 86: Concurrency
    1-462Section 86.1: Dispatch group - waiting for other threads completed
    1-463Section 86.2: Executing on the main thread
    1-464Section 86.3: Running code concurrently -- Running code while running other code
    1-465Chapter 87: CAGradientLayer
    1-466Section 87.1: Creating a CAGradientLayer
    1-467Section 87.2: Animating a color change in CAGradientLayer
    1-468Section 87.3: Creating a horizontal CAGradientLayer
    1-469Section 87.4: Creating a horizontal CAGradientLayer with multiple colors
    1-470Section 87.5: Creating a CGGradientLayer with multiple colors
    1-471Chapter 88: Safari Services
    1-472Section 88.1: Open a URL with SafariViewController
    1-473Section 88.2: Implement SFSafariViewControllerDelegate
    1-474Section 88.3: Add Items to Safari Reading List
    1-475Chapter 89: CALayer
    1-476Section 89.1: Adding Transforms to a CALayer (translate, rotate, scale)
    1-477Section 89.2: Shadows
    1-478Section 89.3: Emitter View with custom image
    1-479Section 89.4: Rounded corners
    1-480Section 89.5: Creating particles with CAEmitterLayer
    1-481Section 89.6: How to add a UIImage to a CALayer
    1-482Section 89.7: Disable Animations
    1-483Chapter 90: iOS - Implementation of XMPP with Robbie Hanson framework
    1-484Section 90.1: iOS XMPP Robbie Hanson Example with Openfire
    1-485Chapter 91: Swift and Objective-C interoperability
    1-486Section 91.1: Using Objective-C Classes in Swift
    1-487Section 91.2: Using Swift Classes in Objective-C
    1-488Chapter 92: Custom fonts
    1-489Section 92.1: Embedding custom fonts
    1-490Section 92.2: Applying custom fonts to controls within a Storyboard
    1-491Section 92.3: Custom Fonts with Storyboard
    1-492Chapter 93: AVSpeechSynthesizer
    1-493Section 93.1: Creating a basic text to speech
    1-494Chapter 94: Localization
    1-495Section 94.1: Localization in iOS
    1-496Chapter 95: Alamofire
    1-497Section 95.1: Manual Validation
    1-498Section 95.2: Automatic Validation
    1-499Section 95.3: Chained Response Handlers
    1-500Section 95.4: Making a Request
    1-501Section 95.5: Response Handling
    1-502Section 95.6: Response Handler
    1-503Chapter 96: iBeacon
    1-504Section 96.1: iBeacon Basic Operation
    1-505Section 96.2: Ranging iBeacons
    1-506Section 96.3: Scanning specific Beacons
    1-507Chapter 97: CLLocation
    1-508Section 97.1: Distance Filter using
    1-509Section 97.2: Get User Location Using CLLocationManager
    1-510Chapter 98: Checking iOS version
    1-511Section 98.1: iOS 8 and later
    1-512Section 98.2: Swift 2.0 and later
    1-513Section 98.3: Compare versions
    1-514Section 98.4: Device iOS Version
    1-515Chapter 99: Universal Links
    1-516Section 99.1: Setup iOS Application (Enabling Universal Links)
    1-517Section 99.2: Supporting Multiple Domains
    1-518Section 99.3: Signing the App-Site-Association File
    1-519Section 99.4: Setup Server
    1-520Chapter 100: PDF Creation in iOS
    1-521Section 100.1: Create PDF
    1-522Section 100.2: Show PDF
    1-523Section 100.3: Multiple page PDF
    1-524Section 100.4: Create PDF from any Microsoft Document loaded in UIWebview
    1-525Chapter 101: In-App Purchase
    1-526Section 101.1: Single IAP in Swift 2
    1-527Section 101.2: Most basic steps for purchasing/subscribing a user to an IAP
    1-528Section 101.3: Set Up in iTunesConnect
    1-529Chapter 102: CGContext Reference
    1-530Section 102.1: Draw line
    1-531Section 102.2: Draw Text
    1-532Chapter 103: Core Location
    1-533Section 103.1: Request Permission to Use Location Services
    1-534Section 103.2: Add own custom location using GPX file
    1-535Section 103.3: Link CoreLocation Framework
    1-536Section 103.4: Location Services in the Background
    1-537Chapter 104: FacebookSDK
    1-538Section 104.1: Creating your own custom "Sign In With Facebook" button
    1-539Section 104.2: FacebookSDK Integration
    1-540Section 104.3: Fetching the facebook user data
    1-541Chapter 105: AFNetworking
    1-542Section 105.1: Dispatching completion block on a custom thread
    1-543Chapter 106: CTCallCenter
    1-544Section 106.1: CallKit - ios 10
    1-545Section 106.2: Intercepting calls from your app even from the background
    1-546Chapter 107: Push Notifications
    1-547Section 107.1: Registering device for Push Notifications
    1-548Section 107.2: Registering App ID for use with Push Notifications
    1-549Section 107.3: Testing push notifications
    1-550Section 107.4: Checking if your app is already registered for Push Notification
    1-551Section 107.5: Generating a .pem certificate from your .cer file, to pass on to the server developer
    1-552Section 107.6: Unregistering From Push Notifications
    1-553Section 107.7: Setting the application icon badge number
    1-554Section 107.8: Registering for (Non Interactive) Push Notification
    1-555Section 107.9: Handling Push Notification
    1-556Chapter 108: Extension for rich Push Notification - iOS 10.
    1-557Section 108.1: Notification Content Extension
    1-558Section 108.2: Implementation
    1-559Chapter 109: Rich Notifications
    1-560Section 109.1: Creating a simple UNNotificationContentExtension
    1-561Chapter 110: Key Value Coding-Key Value Observation
    1-562Section 110.1: Observing a property of a NSObject subclass
    1-563Section 110.2: Use of context for KVO Observation
    1-564Chapter 111: Initialization idioms
    1-565Section 111.1: Factory method with block
    1-566Section 111.2: Set to tuples to avoid code repetition
    1-567Section 111.3: Initialize with positional constants
    1-568Section 111.4: Initialize attributes in didSet
    1-569Section 111.5: Group outlets in a custom NSObject
    1-570Section 111.6: Initialize with then
    1-571Chapter 112: Storyboard
    1-572Section 112.1: Initialize
    1-573Section 112.2: Fetch Initial ViewController
    1-574Section 112.3: Fetch ViewController
    1-575Chapter 113: Background Modes and Events
    1-576Section 113.1: Play Audio in Background
    1-577Chapter 114: Fastlane
    1-578Section 114.1: fastlane tools
    1-579Chapter 115: CAShapeLayer
    1-580Section 115.1: Draw Rectangle
    1-581Section 115.2: Draw Circle
    1-582Section 115.3: CAShapeLayer Animation
    1-583Section 115.4: Basic CAShapeLayer Operation
    1-584Chapter 116: WKWebView
    1-585Section 116.1: Adding custom user script loaded from app bundle
    1-586Section 116.2: Send messages from JavaScript and Handle them on the native side
    1-587Section 116.3: Creating a Simple WebBrowser
    1-588Chapter 117: UUID (Universally Unique Identifier)
    1-589Section 117.1: Apple's IFA vs. IFV (Apple Identifier for Advertisers vs. Identifier for Vendors)
    1-590Section 117.2: Create UUID String for iOS devices
    1-591Section 117.3: Generating UUID
    1-592Section 117.4: Identifier for vendor
    1-593Chapter 118: Categories
    1-594Section 118.1: Create a Category
    1-595Chapter 119: Handling URL Schemes
    1-596Section 119.1: Using built-in URL scheme to open Mail app
    1-597Section 119.2: Apple URL Schemes
    1-598Chapter 120: Realm
    1-599Section 120.1: RLMObject Base Model Class with Primary Key - Objective-C
    1-600Chapter 121: ARC (Automatic Reference Counting)
    1-601Section 121.1: Enable/Disable ARC on a file
    1-602Chapter 122: Dynamic Type
    1-603Section 122.1: Matching Dynamic Type Font Size in WKWebView
    1-604Section 122.2: Get the Current Content Size
    1-605Section 122.3: Handling Preferred Text Size Change Without Notifications on iOS 10
    1-606Section 122.4: Text Size Change Notification
    1-607Chapter 123: SWRevealViewController
    1-608Section 123.1: Setting up a basic app with SWRevealViewController
    1-609Chapter 124: DispatchGroup
    1-610Section 124.1: Introduction
    1-611Chapter 125: GCD (Grand Central Dispatch)
    1-612Section 125.1: Dispatch Semaphore
    1-613Section 125.2: Dispatch Group
    1-614Section 125.3: Getting the Main Queue
    1-615Section 125.4: Create a dispatch queue
    1-616Section 125.5: Serial vs Concurrent Dispatch Queues
    1-617Chapter 126: Size Classes and Adaptivity
    1-618Section 126.1: Trait Collections
    1-619Section 126.2: Updating Auto Layout with Trait Collection Changes
    1-620Section 126.3: Supporting iOS Multitasking on iPad
    1-621Chapter 127: IBOutlets
    1-622Section 127.1: Using an IBOutlet in a UI Element
    1-623Chapter 128: AWS SDK
    1-624Section 128.1: Upload an image or a video to S3 using AWS SDK
    1-625Chapter 129: Debugging Crashes
    1-626Section 129.1: Debugging EXC_BAD_ACCESS
    1-627Section 129.2: Finding information about a crash
    1-628Section 129.3: Debugging SIGABRT and EXC_BAD_INSTRUCTION crashes
    1-629Chapter 130: CloudKit
    1-630Section 130.1: Registering app for use with CloudKit
    1-631Section 130.2: Using CloudKit Dashboard
    1-632Section 130.3: Saving data to CloudKit
    1-633Chapter 131: GameplayKit
    1-634Section 131.1: Generating random numbers
    1-635Section 131.2: GKEntity and GKComponent
    1-636Chapter 132: Xcode Build & Archive From Command Line
    1-637Section 132.1: Build & Archive
    1-638Chapter 133: XCTest framework - Unit Testing
    1-639Section 133.1: Adding Test Files to Xcode Project
    1-640Section 133.2: Adding test methods
    1-641Section 133.3: Writing a test class
    1-642Section 133.4: Adding Storyboard and View Controller as instances to test file
    1-643Section 133.5: Import a module that it can be tested
    1-644Section 133.6: Trigger view loading and appearance
    1-645Section 133.7: Start Testing
    1-646Chapter 134: AVPlayer and AVPlayerViewController
    1-647Section 134.1: Playing Media using AVPlayer and AVPlayerLayer
    1-648Section 134.2: Playing Media Using AVPlayerViewController
    1-649Section 134.3: AVPlayer Example
    1-650Chapter 135: Deep Linking in iOS
    1-651Section 135.1: Adding a URL scheme to your own app
    1-652Section 135.2: Opening an app based on its URL scheme
    1-653Section 135.3: Setting up deeplink for your app
    1-654Chapter 136: Core Graphics
    1-655Section 136.1: Creating a Core Graphics Context
    1-656Section 136.2: Presenting the Drawn Canvas to User
    1-657Chapter 137: Segues
    1-658Section 137.1: Using Segues to navigate backwards in the navigation stack
    1-659Section 137.2: An Overview
    1-660Section 137.3: Preparing your view controller before a triggering a Segue
    1-661Section 137.4: Deciding if an invoked Segue should be performed
    1-662Section 137.5: Trigger Segue Programmatically
    1-663Chapter 138: EventKit
    1-664Section 138.1: Accessing dierent types of calendars
    1-665Section 138.2: Requesting Permission
    1-666Section 138.3: Adding an event
    1-667Chapter 139: SiriKit
    1-668Section 139.1: Adding Siri Extension to App
    1-669Chapter 140: Contacts Framework
    1-670Section 140.1: Adding a Contact
    1-671Section 140.2: Authorizing Contact Access
    1-672Section 140.3: Accessing Contacts
    1-673Chapter 141: iOS 10 Speech Recognition API
    1-674Section 141.1: Speech to text: Recognize speech from a bundle contained audio recording
    1-675Chapter 142: StoreKit
    1-676Section 142.1: Get localized product information from the App Store
    1-677Chapter 143: Code signing
    1-678Section 143.1: Provisioning Profiles
    1-679Chapter 144: Create .ipa File to upload on appstore with Applicationloader
    1-680Section 144.1: create .ipa file to upload app to appstore with Application Loader
    1-681Chapter 145: Size Classes and Adaptivity
    1-682Section 145.1: Size Classes and Adaptivity through Storyboard
    1-683Chapter 146: MKDistanceFormatter
    1-684Section 146.1: String from distance
    1-685Section 146.2: Distance units
    1-686Section 146.3: Unit style
    1-687Chapter 147: 3D Touch
    1-688Section 147.1: 3D Touch with Swift
    1-689Section 147.2: 3 D Touch Objective-C Example
    1-690Chapter 148: GameCenter Leaderboards
    1-691Section 148.1: GameCenter Leaderboards
    1-692Chapter 149: Keychain
    1-693Section 149.1: Adding a Password to the Keychain
    1-694Section 149.2: Keychain Access Control (TouchID with password fallback)
    1-695Section 149.3: Finding a Password in the Keychain
    1-696Section 149.4: Updating a Password in the Keychain
    1-697Section 149.5: Removing a Password from the Keychain
    1-698Section 149.6: Keychain Add, Update, Remove and Find operations using one file
    1-699Chapter 150: Handle Multiple Environment using Macro
    1-700Section 150.1: Handle multiple environment using multiple target and macro
    1-701Chapter 151: Set View Background
    1-702Section 151.1: Fill background Image of a UIView
    1-703Section 151.2: Creating a gradient background view
    1-704Section 151.3: Set View backround with image
    1-705Section 151.4: Set View background
    1-706Chapter 152: Block
    1-707Section 152.1: Custom completion block for Custom Methods
    1-708Section 152.2: UIView Animations
    1-709Section 152.3: Modify captured variable
    1-710Chapter 153: Content Hugging/Content Compression in Autolayout
    1-711Section 153.1: Definition: Intrinsic Content Size
    1-712Chapter 154: iOS Google Places API
    1-713Section 154.1: Getting Nearby Places from Current Location
    1-714Chapter 155: Navigation Bar
    1-715Section 155.1: SWIFT Example
    1-716Section 155.2: Customize default navigation bar appearance
    1-717Chapter 156: App wide operations
    1-718Section 156.1: Get the top most UIViewController
    1-719Section 156.2: Intercept System Events
    1-720Chapter 157: CoreImage Filters
    1-721Section 157.1: Core Image Filter Example
    1-722Chapter 158: Face Detection Using CoreImage/OpenCV
    1-723Section 158.1: Face and Feature Detection
    1-724Chapter 159: MPMediaPickerDelegate
    1-725Section 159.1: Load music with MPMediaPickerControllerDelegate and play it with AVAudioPlayer
    1-726Chapter 160: Graph (Coreplot)
    1-727Section 160.1: Making graphs with CorePlot
    1-728Chapter 161: FCM Messaging in Swift
    1-729Section 161.1: Initialize FCM in Swift
    1-730Chapter 162: Create a Custom framework in iOS
    1-731Section 162.1: Create Framework in Swift
    1-732Chapter 163: Custom Keyboard
    1-733Section 163.1: Custom KeyBoard Example
    1-734Chapter 164: AirDrop
    1-735Section 164.1: AirDrop
    1-736Chapter 165: SLComposeViewController
    1-737Section 165.1: SLComposeViewController for Twitter, facebook, SinaWelbo and TencentWelbo
    1-738Chapter 166: AirPrint tutorial in iOS
    1-739Section 166.1: AirPrint printing Banner Text
    1-740Chapter 167: Carthage iOS Setup
    1-741Section 167.1: Carthage Installation Mac
    1-742Chapter 168: Healthkit
    1-743Section 168.1: HealthKit
    1-744Chapter 169: Core SpotLight in iOS
    1-745Section 169.1: Core-Spotlight
    1-746Chapter 170: Core Motion
    1-747Section 170.1: Accessing Barometer to get relative altitude
    1-748Chapter 171: QR Code Scanner
    1-749Section 171.1: Scanning QR code with AVFoudation framework
    1-750Section 171.2: UIViewController scanning for QR and displaying video input
    1-751Chapter 172: plist iOS
    1-752Section 172.1: Example:
    1-753Section 172.2: Save and edit/delete data from Plist
    1-754Chapter 173: WCSessionDelegate
    1-755Section 173.1: Watch kit controller (WKInterfaceController)
    1-756Chapter 174: AppDelegate
    1-757Section 174.1: All States of Application through AppDelegate methods
    1-758Section 174.2: AppDelegate Roles:
    1-759Section 174.3: Opening a URL-Specified Resource
    1-760Section 174.4: Handling Local and Remote Notifications
    1-761Chapter 175: App Submission Process
    1-762Section 175.1: Setup provisioning profiles
    1-763Section 175.2: Archive the code
    1-764Section 175.3: Export IPA file
    1-765Section 175.4: Upload IPA file using Application Loader
    1-766Chapter 176: FileHandle
    1-767Section 176.1: Read file from document directory in chunks
    1-768Chapter 177: Basic text file I/O
    1-769Section 177.1: Read and write from Documents folder
    1-770Chapter 178: iOS TTS
    1-771Section 178.1: Text To Speech
    1-772Chapter 179: MPVolumeView
    1-773Section 179.1: Adding a MPVolumeView
    1-774Chapter 180: Objective-C Associated Objects
    1-775Section 180.1: Basic Associated Object Example
    1-776Chapter 181: Passing Data between View Controllers (with MessageBox-Concept)
    1-777Section 181.1: Simple Example Usage
    1-778Chapter 182: MVVM
    1-779Section 182.1: MVVM Without Reactive Programming
    1-780Chapter 183: Cache online images
    1-781Section 183.1: AlamofireImage
    1-782Chapter 184: Chain Blocks in a Queue (with MKBlockQueue)
    1-783Section 184.1: Example Code
    1-784Chapter 185: Simulator
    1-785Section 185.1: Launching Simulator
    1-786Section 185.2: 3D / Force Touch simulation
    1-787Section 185.3: Change Device Model
    1-788Section 185.4: Navigating Simulator
    1-789Chapter 186: Background Modes
    1-790Section 186.1: Turning on the Background Modes capability
    1-791Section 186.2: Background Fetch
    1-792Section 186.3: Testing background fetch
    1-793Section 186.4: Background Audio
    1-794Chapter 187: OpenGL
    1-795Section 187.1: Example Project
    1-796Chapter 188: MVP Architecture
    1-797Section 188.1: Dog.swift
    1-798Section 188.2: DoggyService.swift
    1-799Section 188.3: DoggyPresenter.swift
    1-800Section 188.4: DoggyView.swift
    1-801Section 188.5: DoggyListViewController.swift
    1-802Chapter 189: Configure Beacons with CoreBluetooth
    1-803Section 189.1: Showing names of all Bluetooth Low Energy (BLE)
    1-804Section 189.2: Connect and read major value
    1-805Section 189.3: Write major value
    1-806Chapter 190: Core Data
    1-807Section 190.1: Operations on core data
    1-808Chapter 191: Profile with Instruments
    1-809Section 191.1: Time Profiler
    1-810Chapter 192: Application rating/review request
    1-811Section 192.1: Rate/Review iOS Application
    1-812Chapter 193: MyLayout
    1-813Section 193.1: A Simple Demo to use MyLayout
    1-814Chapter 194: Simulator Builds
    1-815Section 194.1: Installing the build manually on simulator
    1-816Chapter 195: Simulating Location Using GPX files iOS
    1-817Section 195.1: Your .gpx file: MPS_HQ.gpx
    1-818Section 195.2: To set this location:
    1-819Chapter 196: SqlCipher integration
    1-820Section 196.1: Integration of code:
    1-821Chapter 197: Security
    1-822Section 197.1: Securing Data in iTunes Backups
    1-823Section 197.2: Transport Security using SSL
    1-824Chapter 198: App Transport Security (ATS)
    1-825Section 198.1: Load all HTTP content
    1-826Section 198.2: Selectively load HTTP content
    1-827Section 198.3: Endpoints require SSL
    1-828Chapter 199: Guideline to choose best iOS Architecture Patterns
    1-829Section 199.1: MVP Patterns
    1-830Section 199.2: MVVM Pattern
    1-831Section 199.3: VIPER Pattern
    1-832Section 199.4: MVC pattern
    1-833Chapter 200: Multicast Delegates
    1-834Section 200.1: Multicast delegates for any controls
    1-835Chapter 201: Using Image Aseets
    1-836Section 201.1: LaunchImage using Image Assets
    1-837Section 201.2: App Icon using Image Assets
    1-838Chapter 202: Runtime in Objective-C
    1-839Section 202.1: Using Associated Objects
    1-840Chapter 203: ModelPresentationStyles
    1-841Section 203.1: Exploring ModalPresentationStyle using Interface Builder
    1-842Chapter 204: CydiaSubstrate tweak
    1-843Section 204.1: Create new tweak using Theos
    1-844Chapter 205: Create a video from images
    1-845Section 205.1: Create Video from UIImages
    1-846Chapter 206: Codable
    1-847Section 206.1: Use of Codable with JSONEncoder and JSONDecoder in Swift 4
    1-848Chapter 207: Load images async
    1-849Section 207.1: Easiest way
    1-850Section 207.2: Check that the cell is still visible after download
    1-851Chapter 208: Adding a Swift Bridging Header
    1-852Section 208.1: How to create a Swift Bridging Header Manually
    1-853Section 208.2: Xcode create automatically
    1-854Chapter 209: Creating an App ID
    1-855Section 209.1: Creating In-App Purchase Products
    1-856Section 209.2: Creating a Sandbox User
    1-857Chapter 210: Swift: Changing the rootViewController in AppDelegate to present main or login/onboarding flow
    1-858Section 210.1: Option 1: Swap the Root View Controller (Good)
    1-859Section 210.2: Option 2: Present Alternative Flow Modally (Better)
    1-860Credits
    1-861You may also like

    常见问答

    您可以透過手機、平板或是電腦登入 HiSKIO 平台,在【我的學習】>【我的書籍】頁面,選擇想看的電子書。

    猜你喜欢

    用户评价

    | 收集中

    销售方案