From the course: iOS Development: Security
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
The pasteboard spy app - iOS Tutorial
From the course: iOS Development: Security
The pasteboard spy app
- [Instructor] The general pasteboard can be accessed also programmatically. Let's create an app that will do that. I'm going to stop this one. File, New Project. Single View is fine. And I call it PasteboardSpy. Alright, now let's switch to the main storyboard. I'm going to add the UI Label with the text, Pasteboard Content. And I also add a Text View. And I also create a Referencing Outlet called Text View in the View Controller. So let's bring up the matching View Controller and add the outlet for the Text View. Let me close this one and add new Referencing Outlet called Text view. Now, after all these preparations we can retrieve the most recently added string item from the general baseboard. Let me switch to the ViewController. And in the viewDidLoad method, I'm going to create a constant called pasteboardText, and I assign it a value from the UIPasteboard, general and it's string property. It may be nil. So if it's empty, then I simply display the string pasteboard is empty…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Purpose strings2m 7s
-
(Locked)
Request authorization for system features4m 7s
-
(Locked)
Adding the missing purpose string1m 34s
-
Exposing sensitive data through copying and pasting2m 16s
-
(Locked)
The pasteboard spy app2m 24s
-
(Locked)
Prevent pasteboard leakage without coding1m 11s
-
(Locked)
Prevent pasteboard leakage with coding2m 11s
-
(Locked)
Using an app-specific pasteboard5m 33s
-
(Locked)
Data leakage through app screenshots2m 16s
-
(Locked)
Clearing data before moving to the background3m 7s
-
(Locked)
Obscuring the snapshot before moving to the background3m 30s
-
(Locked)
Hacking the UserDefaults4m 40s
-
(Locked)
-
-
-
-
-