Skip to Content
Kivy Cookbook
book

Kivy Cookbook

by Hugo Solis
August 2015
Intermediate to advanced
246 pages
4h 21m
English
Packt Publishing
Content preview from Kivy Cookbook

Leveraging mobile features in iOS

There are a lot of features that mobile devices have nowadays. In this recipe, we will learn how to take advantage of this in our iOS apps. Also, we will use the accelerometer in the iOS app.

Getting ready

We will create an iOS package in this recipe. Thus, you should read the recipe Packaging for iOS in this chapter. In this app, we will also use code similar to that used in the recipe Working with the accelerometer in Chapter 2, Input, Motion, and Touch. We will need a KV file, which we will name e2.kv:

<Acce>: Label: id: label1 pos: 150, 300 text: 'X: ' Label: id: label2 pos: 150, 250 text: 'Y: ' Label: id: label3 pos: 150, 200 text: 'Z: ' Label: id: status pos: 150, 150 text: '' Button: id: button1 pos: 150, ...
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.
Start your free trial

You might also like

Creating Apps in Kivy

Creating Apps in Kivy

Dusty Phillips
Kivy Blueprints

Kivy Blueprints

Mark Vasilkov

Publisher Resources

ISBN: 9781783987382Supplemental Content