carabineiro

6,832 Flips | 29 Magazines | 269 Likes | 15 Following | 5,556 Followers | @carabineiro | Software analyst, web developer

Test your app function without opening simulator and clicking 6 buttons

This post will explain how (and why) to get started unit testing in iOS.<p>Table of Contents:<p>Does this sound familiar to you?<p>You adjusted a function and …

Kuala Lumpur

Useful Git Tips and Commands

development<p>No Comments<p>Git is an extremely powerful tool with a big and rich set of tools to help you maintain your projects. In this article, we are …

DevOps

iOS UI tests for custom URL scheme

UI tests is a great way to test that your application behaves as you expect it to and also to verify that you don’t break any features in the future. …

iOS Programming

The power of Result types in Swift

One big benefit of Swift's type system is how it lets us eliminate a lot of ambiguity when it comes to handling values and results of various …

Objective-C

Let’s take quick dive in Grouped Notifications — iOS 12

iOS 12 have Grouped Notifications!<p>Thread Identifier<p>Create notification content with threadIdentifier to create group of that notification. Group will …

Time I

Circle loader icons SVG

See the Code - See it Full Page - See DetailsThis Pen uses: HTML, SCSS, JavaScript, and

Web Development

How to Convert ISO to VDI Virtual Box Image

If you’re a regular VirtualBox user, you may appreciate knowing how to convert an ISO image file (.iso) into a VDI Virtual Box image file (.vdi). …

VirtualBox

Enum-Driven TableView Development

Is there anything more fundamental, in iOS development, than <i>UITableView</i>? It’s a simple, clean control. Unfortunately, a lot of complexity lies under …

Apps

Creating a UITabBarController Framework

Navigation is one of, if not, the most important aspect of any application. Choosing how users will navigate through the different screens plays a …

Object-Oriented Programming

View Controller Lifecycle Explained: When to Use viewDidLayoutSubviews

As an iOS Developer, we are always concerned that we are lacking in knowledge or sometimes we felt that we are inadequate in skills. We say to you …

iOS Programming

Draw Circles iOS Tutorial

In the <b>CircleView</b> class add the following <b>init</b> methods.<p>The background color of the circle view is set to clear, so multiple circles can displayed on …

Graphics

Tutorial: adding iOS 12 Siri Shortcuts to your app - easy way

Hi everyone!<p>In this short tutorial we'll learn how to add Siri Shortcuts via NSUserActivity — the easiest approach. We will make an app and a …

iOS Programming

WWDC 2018 for iOS developers: Siri Shortcuts

In 2016 Apple released SiriKit as a way for your apps to work with Siri. I was really excited because it created an entirely new way for the user to …

InterAct

How to implement expandable menu on iOS (like in Airbnb)

UIScrollView<p>UIScrollView is an iOS SDK view that supports scrolling and zooming. It is used as a superclass of UITableView and UICollectionView, so …

iOS Programming

Let’s write Swift code to intercept SSL Pinning HTTPS Requests

One of the popular ways to inspect HTTPS requests in iOS Apps is the Man-in-the-middle (<b>MITM</b>) attack. This technique requires a machine to be used as …

Information Security

Countdown to WWDC 18

WWDC is the biggest event of the year for any Apple developer, and this year I was lucky enough to win a ticket. So, I wanted to make sure I did all …

Apple

UIAlertController in Swift

UIAlertController is one of the most basic component of the app development, because using the UIAlertController to get the feedback, confirmation, …

Chennai

UICollectionView Custom Layout Tutorial: Pinterest

<i>Update note:</i> This tutorial has been updated to Xcode 9, Swift 4, and iOS 11 by Paride Broggi. The original tutorial was written by Ernesto …

iOS Programming

Use of Blocks(Closures) or Completion Handlers with Function in Swift — iOS

In Objective-C we are using the blocks(completion handlers) with functions as follows :<p>Closures in Swift<p><i>Closures are self-contained blocks of</i> …

Objective-C

Minimal Networking layer from scratch in Swift 4

How to build a declarative Networking layer in 118 relying on Codable, protocol oriented programming and URLSession without compromising …

Networking

Any[Object]

You use Swift AnyObject wrong.<p>So you probably read The Swift Programming Language book, where this piece can be found:<p>Swift provides two special …

Objective-C

Volume View iOS Tutorial

When using audio in your app sometimes you want the user to change the volume. With the help of the MPVolumeView object you create a builtin Volume …

Tutorials

How to Show a Paper Tape in Calculator App for Mac

If you find yourself adding up many numbers or just performing a continuous string of math that is critical to keep track of, you should know that …

Operating Systems

Swipe Gesture iOS Tutorial

The iOS SDK can detect a number of gestures. In this tutorial we show how to detect the left and right swipe gesture. We will create a label which …

XCode

Writing self-documenting Swift code

When and how to write documentation and code comments tends to be something that causes a lot of debate among developers. Some people prefer all code …

Software Development

Define Swift Operators

Assuming we have a vector struct here:<p>Image we want to implement a function for vector addition, how could we do that? Of course we could define a …

Unicode

How to find iBooks library location on your Mac?

iTunes makes it a cinch to select a custom path for your music library and browse the media files, but finding the iBooks library location is a …

iBooks

Generating Random Numbers in Swift

Generating (pseudo)random numbers is pretty easy, but there are a few nuances that everyone should know. Generating cryptographically secure random …

Turn Sublime Text 3 into a JavaScript IDE

Sublime Text is one of the most popular editors for web development and software development in general. It’s very smooth and fast compared to other …

Web Development

Use of Codable with JSONEncoder and JSONDecoder in Swift 4

Codable is added with Xcode 9, iOS 11 and Swift 4. Codable is used to make your data types encodable and decodable for compatibility with external …