|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/property-list-driven-apps-with-swift/
课程评论:没有评论
**课程名称:** Property List 驱动的 Swift 应用 **课程概述:** 本课程教授如何利用 Property List (plist) 文件来构建动态更新的 iOS 应用,无需重新提交 App Store 版本。学员将学习如何在应用内动态显示网页内容,其中包含 YouTube、Vimeo 等视频嵌入、图片等。此外,还能从网页抓取数据,并通过 PHP 进行处理。 **课程内容模块:** * **Auto Layout 初始设置:** 介绍如何使用 Auto Layout 在 Storyboard 中添加 UITableView、UIWebView 和 Navigation Bar。此部分可跳过,直接下载包含已设置布局的起始项目。 * **显示 WebView 和解析 Property List:** 连接 IBOutlets 和 IBActions,进行网络请求以显示任意网页。学习解析 Property List 文件,将数据填充到 UITableView 中。支持数据的层级展示,例如根据“主题”和“课程”细分数据。 * **发送查询字符串变量并接收 HTML 数据:** 学习如何从 iOS 应用发送查询字符串变量到网页,并在 UIWebView 中展示包含这些变量的动态内容,例如嵌入特定 ID 的视频。还可以从网页读取数据,用于实现应用内的网关功能,或展示“每日消息”。此外,会设置返回按钮以在 UITableView 中回溯数据。 * **从网站更新 Property List:** 介绍如何将 Property List 文件上传到服务器,并配置应用优先使用服务器上的数据。如果服务器上的文件不可用,应用将回退到使用本地保存的更新版 Property List,最终回退到应用商店版本。 * **为 UITableView 添加缩略图:** 教授如何在 UITableView 中添加图片,以增强视觉体验。Property List 可以指定应用包内图片或服务器上的图片。学习加载这些图片的代码,并实现图片缓存机制,以便快速加载已加载过的图片。
Have you ever wanted to update an app without resubmitting a new build to Apple? Have you ever wanted to dynamically display web pages in your app, each with the potential to contain embeds of YouTube videos, Vimeo video, Vine embeds, images, etc. Or have you ever thought about pulling in data from a web page into your app, perhaps with a little sprinkle of PHP? How to do all that and more awaits you in this latest iOS video tutorial series with Swift 1.2! Read the course curriculum below.Initial Setup with Auto LayoutIn this first video we will look at the initial layout of the app. This involves adding a UITableView, UIWebView and Navigation Bar to our Main storyboard file. If you have no interest in learning (or relearning Auto-Layout) than this lesson is completely skippable and you can download the starting project, with the layout already included.Displaying a Web View and Parsing the Property ListIn these next video tutorials we will connect our IBOutlets and IBActions, make our first web request (display any site/page you want in the app), do a quick parse of the Property List, then fully parse the property list and feed all of our data into a UITable. The data is sub-sectioned so for example, we will click on a broad section of data (like Topics), then click another section (like Courses), then choose from links within that section (for example, a specific Lesson to view). This setup can be used for any kind of data.Sending Query String Variables from the App and Receiving HTML Data BackIn this video tutorials we will learn how to send query string variables from an iOS app and use them within the content shown in our UIWebView. So for example, we might open a webpage like….video_player?id=12345 , where the page then displays a YouTube or Vimeo embed with the ID of 12345. So using this method your Property List can open a single page and feed in countless variables for different links, or information of any sort. Along with that we can include custom titles within the app based on what we're displaying. We will also experiment with reading data back in from a webpage (without actually showing it). So for example, this could be used to act as a kind of gateway within the app, if a particular webpage's content displayed the word "no", then the app wouldn't allow a particular set of functionality. Or this could just be used to display the "message of the day". Finally we will setup a back button so users can reverse back up the Property List data in the UITableView.Updating the Property List from a copy stored on your websiteIn these next videos we mostly deal with an optional add on to the course which involves uploading a second copy of the Property List to a server and making the app use it as the primary source of data. If that Property List is unreachable, the app will fallback to checking on a locally saved version of that updated property list, and if that fails, the app will resort to using the original Property List submitted with the bundle to the App Store.Adding Thumbnail Images to the UITableViewThis video tutorial teaches how to include an image (of any size) in the UITableView to make for an obviously more eye-popping visual experience to a normal list-only table view. The property list can define either an image in the main app bundle, or an image stored on a server (both can be used in the same table). We will then write the code to load either. If an image stored at a URL is defined, we will cache that image, so after the initial load, our UITableView loads only the cached version. Creating an image cache sounds fancy but it is simply a mutable dictionary (which is useful for many projects!)