All snippets tagged with ios

Page 1 of 1

UILabel progressbar

A UILabel that acts as a progress bar, check the Pixplicity Authenticator app to see an example (Android here, iOS currently not yet). Simply add a UILabel to your view through the Xcode interface builder and subclass it to LoaderUILabel. Or programmatically add it to your view.

Read more…

Retrieving NSmangedObjectContext

Storing Objects in keychain

Keychain is normally used to simply store credentials. This snippet illustrates a workaround to store entire objects in the keychain and supply them with a persistent ref to have a direct reference to individual items.

Read more…

Using Coredata in your iOS app

Getting iOS app version programmatically

Responding to keyboard / Dismissing keyboard

Use Hexcolors in your iOS app

Add Firebase push to your iOS app

Create a framework to import into a larger project

In your child project, add a new target by going into the project properties, clicking the + icon and picking Cross-platform > Other > Aggregate.

Read more…

Compress or convert video for embedding in an Android or iOS app

The following uses ffmpeg to compress a video that is optimally compressed for size while keeping an ok quality, and ensures compatibility across 99.99% of the Android and iOS devices.

Read more…