Commit Graph

164 Commits

Author SHA1 Message Date
Liu Lantao b4b52dd94a
Merge pull request #17 from janeshsutharios/patch-1
Added SwiftUI & Swift Tutorials link
2023-05-24 20:40:19 +08:00
Janesh suthar 5a96678ec7
Added SwiftUI & Swift Tutorials link
For New user Added SwiftUI & Swift Tutorials link which is easy to understand
2022-08-27 20:11:45 +05:30
Liu Lantao e165e90f7d
Update README.md 2021-02-03 11:16:58 +08:00
Liu Lantao 73b918d5dd
Update README.md 2019-06-25 16:52:16 +08:00
Liu Lantao 3dc4fbfd4b
Update README.md 2019-04-25 08:47:39 +08:00
Liu Lantao 98af6f3b8c
Merge pull request #13 from WaterPeak/master
update epub link
2019-04-01 07:42:09 +02:00
水峰 8be20d29b2
update epub link
the link direct to swift4 epub is invalidate, update to swift5
2019-03-25 15:49:20 +08:00
Liu Lantao c417eea215
MPRemoteCommandSample: Using MPRemoteCommandCenter respond to remote control events: Version 1.0, 2016-10-27
First public release

This sample demonstrates how to use the MediaPlayer MPRemoteCommandCenter APIs to handle remote control events. Refer to this sample if you want to know how to respond to remote control events, customize your Control Center and Lock Screen controls, and support Siri commands related to remote control events.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:47:41 +08:00
Liu Lantao f0229d491d
Interactive Content with ARKit: Version 1.2, 2018-02-15
Add support for ARKit 1.5

This sample code demonstrates an interactive augmented reality experience using SceneKit and ARKit.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:46:19 +08:00
Liu Lantao 6c1da7d680
Fox 2: SceneKit WWDC 2017 sample code: Version 1.2, 2018-02-08
Scene file fix.

This sample code demonstrates the following Scene Kit features that were added in iOS 11, tvOS 11, and macOS 10.13: * Camera constraints define the camera behaviour of the app/game * A new physically-based depth of field effect achieved with “bokeh” * Screen space GPU tessellation (using Pixar’s openSubdiv) * Animation of character tones using a new animation engine (and API) * Cascaded shadow maps * GameplayKit integration

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:44:32 +08:00
Liu Lantao 8d848298e1
Flags: A demonstration of automatic RTL support in Asset Catalogs and UIStackViews: Version 1.0, 2016-10-27
First release

This sample project illustrates the usage of Directional Image Assets in an iOS project. By using Directional Image Assets, images shown on-screen can automatically adapt to different layout directions (e.g. right-to-left contexts when running in Arabic or Hebrew), without requiring special code for loading different image variations at runtime.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:42:42 +08:00
Liu Lantao 8c9a363f0a
Audio in ARKit: Version 2.1, 2018-03-08
Supports relocalization

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:40:31 +08:00
Liu Lantao 49d00bef80
Adopting Metal II: Designing and Implementing a Real-World Metal Renderer: Version 1.0, 2016-09-13
First release

This sample is provided as example material for Adopting Metal II. Within this sample, you will find a ideal reference for the structure of a Metal based renderer. This project takes special care to highlight best practices in terms of data management, command buffer creation, and synchronization between CPU and GPU.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:38:34 +08:00
Liu Lantao 62ed149859
AdaptiveElements: Implementing Your Own Adaptive Design with UIKit: Version 1.0, 2016-09-13
First release

This sample shows how to use UIKit to lay out your app's elements in different sizes, from full-screen on the smallest iPhone to Multitasking on the biggest iPad. It shows how to make smart decisions about implementing your own design. It also demonstrates how to reuse elements in different sizes, so you can take advantage of all the available space without having to rewrite your entire app.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:37:34 +08:00
Liu Lantao aae0e2427c
AVFoundation Looping Player: Using AVQueuePlayer and AVPlayerLooper to demonstrate loop playback: Version 2.0, 2016-09-13
Added new project to show AVPlayerLooper

This sample is a collection of projects showing how to play an audio visual item in a loop using AVFoundation's AVQueuePlayer and/or AVPlayerLooper.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:36:23 +08:00
Liu Lantao 71ab3deb3c
Update sample list
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-03-14 17:33:15 +08:00
Liu Lantao f744bbde0a
N/A 2018-02-13 20:47:36 +08:00
Liu Lantao 6196905afd
CoreDataBooks: Version 1.5, 2014-05-08
Fixed NSUndoManager allocation bug.

This sample illustrates a number of aspects of working with the Core Data framework with an iOS application:

* Use of an instance of NSFetchedResultsController object to manage a collection of objects to be displayed in a table view.
* Undo and redo.
* Database initialization.
* Use of a second (child) managed object context to isolate changes during an add operation.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 11:13:27 +08:00
Liu Lantao efa24f70fb
LocateMe: Version 4.0, 2014-09-17
Updated for iOS 8 SDK. Now uses storyboards.

This demonstrates the two primary use cases for the Core Location Framework: getting the user's location and tracking changes to the user's location.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 11:12:25 +08:00
Liu Lantao d7fae3d4fc
CloudCaptions: How integrate CloudKit into your application: Version 1.0, 2014-09-17
First public release.

This sample shows how to use CloudKit to upload and retrieve CKRecords and associated assets. In this example, there are two record types, an image record type and a post record type. Users are able to upload their own photos or select an image already found in an image record type. This example also uses an NSPredicate in its CKQueries to filter results based on tags.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 11:11:37 +08:00
Liu Lantao 2ce554f4e8
Reachability: Version 5.0, 2016-05-05
Revised to clarify and document how Reachability supports IPv6.

The Reachability sample application demonstrates how to use the System Configuration framework to monitor the network state of an iOS device. In particular, it demonstrates how to know when IP can be routed and when traffic will be routed through a Wireless Wide Area Network (WWAN) interface such as EDGE or 3G. Note: Reachability cannot tell your application if you can connect to a particular host, only that an interface is available that might allow a connection, and whether that interface is the WWAN. To understand when and how to use Reachability, read "Networking Overview".

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 10:59:49 +08:00
Liu Lantao 869798c08f
Table Search with UISearchController: Version 1.6, 2018-01-16
Converted to Swift 4, upgraded to iOS 11 SDK.

“Table Search with UISearchController” is an iOS sample application that demonstrates how to use UISearchController. A search controller manages the presentation of a search bar, in concert with the results view controller’s content.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 10:45:39 +08:00
Liu Lantao 1ecd172c86
TopSongs: Version 5.2, 2017-03-23
Upgrade to iOS 10.2 SDK, replaced deprecated APIs, updated the NSAppTransportSecurity key value server domain.

This sample code demonstrates efficiently parsing and importing data from an XML RSS feed into Core Data. The XML parsing is done using libxml. The feed is from iTunes Top Songs and contains data about songs, artists, and categories. The application's data model has an entity for Song and for Category. Managed objects are inserted into a managed object context on a background thread, so the application remains responsive to the user while the import is taking place.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 10:37:21 +08:00
Liu Lantao 9c55ee0834
SimpleTunnel: Customized Networking Using the NetworkExtension Framework: Version 1.3, 2016-10-04
Updated to Swift 3

The Network Extension framework exposes APIs that give you the ability to customize the networking features of iOS and OS X. This sample project demonstrates how to:

- Use the NEPacketTunnelProvider class to implement a custom VPN tunneling protocol. - Use the NETunnelProviderManager class to create and manage VPN configurations that use the custom VPN tunneling protocol. - Use the NEAppProxyProvider class to implement a custom transparent network proxy protocol. - Use the NEAppProxyProviderManager class to manage VPN configurations that use the transparent network proxy protocol. - Use the NEFilterControlProvider and NEFilterDataProvider classes to implement a custom on-device content filtering service. - Use the NEFilterManager class to configure the custom filtering service.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 10:32:13 +08:00
Liu Lantao 7da81ad0e8
KeychainTouchID: Using Touch ID with Keychain and LocalAuthentication: Version 3.0, 2016-09-28
Updated for iOS 10

The KeychainTouchID sample shows how to store Touch ID protected items to the keychain and how to query for those items with custom message prompts. You’ll see how to use the keychain item accessibility class, which invalidates items when the passcode is removed. You’ll also find out how to use the LocalAuthentication class to invoke Touch ID verification without involving the keychain.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-13 10:29:17 +08:00
Liu Lantao ba9d4a31c7
TableViewPlayground: Using View-Based NSTableView and NSOutlineView: Version 3.0, 2017-04-14
Upgraded for macOS 10.12 SDK, addressed deprecated API usage, modern Obj-C syntax.

The TableViewPlayground demonstrates using the view based NSTableView and NSOutlineView. Four different samples are shown. First, a HUD window with an NSTableView that completely uses bindings to display sample windows to create. Second, a basic View Based TableView implementation is shown using delegate and dataSource methods. Third, a complex TableView example based on the AnimatedTableView demo application. Finally, a complex NSOutlineView demo that mixes bindings and a dataSource to get the job done.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-02-10 13:06:18 +08:00
Liu Lantao f4d3340bbc
PhotoPicker: Using UIImagePickerController to Select Pictures and Take Photos: Version 4.2, 2018-01-11
Updated to iOS 11 SDK, converted to Swift, storyboard changes to support iPhone X.

PhotoPicker demonstrates choosing images from the photo library, take a picture with the camera, and customizing the camera view. This is done by using UIImagePickerController. The chosen image or camera photo is displayed in a UIImageView.

To customize the camera's interface, this sample shows how to use an overlay view. With this overlay view it gives you the ability to customize the UI as you take a picture.

Among the custom features of the camera is to take a single picture, timed picture, or repeated pictures like a camera with a fast shutter speed. Timed and shutter speed camera shots are done using the NSTimer class.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-01-15 23:21:01 +08:00
Liu Lantao ff28a563f9
Update sample list
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2018-01-15 23:18:41 +08:00
Liu Lantao 87a44d880e
CallJS: Version 1.1, 2011-07-05
Project updated for Xcode 4.

This sample illustrates how to add JavaScript methods that call through to your Objective-C code and how to execute JavaScript in the current page of a WebView.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-28 23:38:44 +08:00
Liu Lantao ee46a30369
MotionGraphs: Version 2.0, 2017-02-02
Updated to Swift

This sample demonstrates how to receive updates from sensors using Core Motion. It displays graphs of accelerometer, gyroscope and device motion data.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-27 23:07:53 +08:00
Liu Lantao 9c23c3772a
SpeedySloth: Using HealthKit to build a workout app for Apple Watch: Version 1.0, 2016-10-04
First release

This sample demonstrates how to use HealthKit to build a workout app that runs in the background, collects data from the Apple Watch sensors, and contributes to Activity rings.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-27 23:04:15 +08:00
Liu Lantao f00f92f9d6
Update sample list
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-27 23:03:53 +08:00
Liu Lantao 46acaebced
ApplicationShortcuts: Version 1.3, 2017-12-14
Upgraded to Swift 4, iOS 11 SDK.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-20 13:09:45 +08:00
Liu Lantao 9fe53f35a7
Update sample list
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-20 13:08:21 +08:00
Liu Lantao b30523d1e5
CFHostSample: Version 3.0, 2017-03-14
Rewritten in Swift.

The main program is a simple command line tool that accepts parameters, creates query objects, runs them, and prints the results.

The various query classes are each a simple wrapper around CFHost; each has extensive comments explaining how to use the class and how the class works internally.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 08:51:46 +08:00
Liu Lantao c0557ce14a
AudioUnitV3Example: Version 3.0, 2017-06-06
Now demonstrates UI view size negotiation.

Demonstrates how to build functioning examples of two Audio Unit extensions and a simple Audio Unit host app for iOS and macOS with the version 3 Audio Unit APIs.

The Audio Unit Extensions API introduces a mechanism for developers to deliver Audio Units on both iOS and OS X using the same API and also provides a bridging mechanism for existing version 2 Audio Units and hosts allowing them to work with new version 3 Audio Units.

The targets in this sample are all prefixed by their respective platform designation, "iOS" or "OSX":

- FilterDemoApp, FilterDemoAppExtension - Effect Audio Unit - InstrumentDemoApp, InstrumentDemoAppExtension - Instrument Audio Unit - AUv3Host - Audio Unit Host

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 08:25:13 +08:00
Liu Lantao d2a790e74d
AudioInARKit - Audio in ARKit: Version 1.1, 2017-09-19
Editorial update.

This sample app runs an ARKit world tracking session with content displayed in a SceneKit view. To demonstrate plane detection, the app simply places a 3D model onto the first plane that ARKit detects. If the model's position is outside the current field of view of the camera, the app uses SceneKit's positional audio feature to indicate which direction to turn the device to see the model.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 08:22:44 +08:00
Liu Lantao c580342ab1
ApplicationShortcuts: Version 1.2, 2016-09-28
Upgraded to Swift 2.3.

Demonstrates how to use the UIApplicationShortcutItem class to provide quick access to parts of your application directly from the device's home screen. The sample shows two static shortcuts (defined in the app's Info.plist), and two dynamic shortcuts (defined in code with the UIMutableApplicationShortcutItem class). The dynamic shortcuts can be edited to change the title, subtitle and icon.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:48:58 +08:00
Liu Lantao f78eaf06a5
AppChat: Version 1.0, 2016-10-27
First release

This sample demonstrates how to incorporate 3D Touch into an iOS App. It makes use of Home Screen Quick Actions (both static and dynamic), Peek and Pop, Peek Actions and UIPreviewInteraction.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:47:31 +08:00
Liu Lantao b374fb84c3
AccessibilityUIExamples: Version 3.0, 2017-09-12
Rewritten in Swift 4.

This sample contains examples of several common control elements with various implementations and code to make them accessible, including using the accessibility methods of NSControl subclasses and implementing accessibility protocols for custom elements.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:43:49 +08:00
Liu Lantao 9ee7278faf
renamed: AVFoundationSimplePlayer -> AVFoundationSimplePlayer-iOS
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:42:24 +08:00
Liu Lantao 5d43c66479
AVCustomEdit: Version 3.0, 2017-08-17
Added Swift target which renders the frames using Metal off screen rendering.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:39:41 +08:00
Liu Lantao 7f10065e5a
TouchCanvas: Version 2.1, 2017-11-16
Modernize Swift.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:24:20 +08:00
Liu Lantao 84042880ef
add update date
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:18:57 +08:00
Liu Lantao 8591b37eb9
rename script
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-11-20 07:08:09 +08:00
Liu Lantao 4a3454b06b
update sample code list
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-10-17 21:15:00 +08:00
Liu Lantao 9e6eb8e751
update
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-10-17 21:13:50 +08:00
Liu Lantao 3f69e9478b Merge pull request #10 from Lax/update 2017-10-16 23:15:42 +08:00
Liu Lantao ef0de5609b
modified: README.md
Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-10-16 23:14:20 +08:00
Liu Lantao 55f0167219
PageControl: Version 7.0, 2017-09-21
Upgraded to Swift, now uses Storyboards.

This application demonstrates how to use a "paginated" UIScrollView to display pages of images in a horizontal fashion as a mechanism for navigating between different pages of content. It is optimized to minimize the memory usage by loading only three image pages at a time the user user scrolls: the current page, the page before and after it. This application was designed as universal to run on both iPhone and iPad devices.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-10-16 22:51:30 +08:00