Skip to Content
移动端AI与ML应用开发:基于iOS和Android
book

移动端AI与ML应用开发:基于iOS和Android

by Laurence Moroney
January 2023
Intermediate to advanced
288 pages
6h 6m
Chinese
China Machine Press
Content preview from 移动端AI与ML应用开发:基于iOS和Android
48
|
3
然后使用终端,转到项目文件夹(它应该包含
.xcproject
文件)并键入
pod install
如果它正确执行,你应该会看到类似图 3-12 的内容。
3-12
:运行
pod install
在撰写本书时,基于 M1 Mac 相对较少。一些测试人员遇到了
pod install
的问题,并且给出了
ffi_c.bundle
的错误。要解决这些问题,请确保你使用的
是最新安装的 CocoaPods,或使用文档(
https://oreil.ly/BqxCx
)。
这将下载依赖库并将它们安装在名为
firstFace.xcworkspace
的新工作区中。使用它来加
载你的工作。现在,你可以在终端内输入
open firstFace.xcworkspace
3.2.3
3
步:创建用户界面
我们要构建最简单的应用程序,但它仍然需要一些 UI 元素。为了尽可能保持简单,这
些是一个 ImageView 和一个 Button(按 钮)。因此,在 Xcode 打开的情况下(到 3.2.2
节所示的
.xcworkspace
文件),在项目中找到
Main.storyboard
文件,然后使用 View
Show Library 打开工具库。
你将看到一个 UI 元素列表,如图 3-13 所示。
使用这个,并在编辑器的
Main.storyboard
活动中将 ImageView Button 拖到故事板的
设计图上。完成后,你的 IDE 应该会如图 3-14 所示。
正文.indd ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能驱动的商业智能

人工智能驱动的商业智能

Tobias Zwingmann
Lua游戏AI开发指南

Lua游戏AI开发指南

Posts & Telecom Press, David Young
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9787111713081