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
142
|
8
.xcworkspace
文件,如图 8-9 所示。将来使用这个打开你的项目,而不是
.xcodeproj
文件。
8-9
:运行
pod install
后的文件结构
你现在拥有一个基本的 iOS 应用程序,并且你已经添加了 TensorFlow Lite 依赖库。下一
步是创建你的用户界面。
8.4.3
3
步:创建用户界面
Xcode 故事板编辑器是一种可视化工具,可让你创建用户界面。打开工作区后,你会在
左侧看到源文件列表。选择
Main.storyboard
,然后使用控件面板,将控件拖放到 iPhone
屏幕的视图上(如图 8-10 所示)
8-10
:向故事板添加控件
如果找不到控件面板,可以通过单击屏幕右上角的 + 来访问它(在图 8-10 中框出)。使
用它,添加一个标签,并将文本更改为 Enter a Number 。然后添加另一个带有文本
Result goes here,添加一个按钮并将其标题更改为“ Go,最后添加一个 TextField
按照图 8-10 中所示的方式排列它们。它不必很漂亮!
现在控件已经布局好,你希望能够在代码中引用它们。在故事板的说法中,你可以使用
正文.indd 142正文.indd 142 2023-4-30 9:09:102023-4-30 9:09:10
更深入:了解
TensorFlow Lite
|
143
输出(当你想要处理控件以读取或设置其内容时)或动作(当你想要在用户与控件交互
时执行某些代码时)来执行此操作。 ...
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

快速提升人工智能产品的实用指南

快速提升人工智能产品的实用指南

Hamel Husain
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
AI原生软件交付

AI原生软件交付

Nick Durkin, Eric Minick, Chinmay Gaikwad

Publisher Resources

ISBN: 9787111713081