IoT-1-Making LED light Switch ON and OFF Using “AT-09 BLE Module”, Arduino Uno & iPhone SE

Hello every one :). Hope you are doing good. We will discuss about communication over BLE between iPhoneSE and Arduino. We will control LED switch ON and OFF from iPhone over bluetooth. Attached is the video of final output: Prerequisite Read More …

React Native, Day 3, Running app on iOS simulator and exploring some cool stuffs

Hello guys. I will suggest you to go through my previous tutorials for better understanding of this tutorial: Day 1, Understanding Technology, Fundamentals and React Day 2 Creating first React Native App Till now we understand basic stuff about react, Read More …

Swift — 4 — Core Data — Part 6B Using NSFetchResultController (Section Title) with UITableView

In previous post we talk about NSFetchedResultsController (NSFRC) basics, it’s delegate methods etc. In this post we will see how we can show section titles using NSFRC. Final output will look like this: Please support us by comment, like and share Read More …

Swift — 4 — Core Data — Part 6 Using NSFetchResultController with UITableView

Hello, hope you are doing good. In this part we will discuss about NSFetchResultController (NSFRC). I will suggest you to read previous tutorials on core data also: Basics Simple App Core data singleton Unit testing with core data Core data Read More …

Swift — 4 — Core Data — Part 5 Core Data Migration

Hello readers. Hope you are doing good.  😀 Today we will discuss about core data migration. In the development phase of a project we keep on adding new features in every versions of app. These feature includes new business requirements and Read More …

Swift – 4 – Core Data – Part 3 Creating a Singleton Core Data & refactoring insert, update, delete operations

Hello guys  😀 . In part 2 we learned about basic core data concepts with insert, update and delete operations. Before starting unit testing for core data we have to loosely couple our code. It will eventually make our view controller class also Read More …

Swift – Core Data – Part 1 | Relationships | Delete Rules

What is core data? “Core Data is a object graph management and persistence Framework”. “Core Data is a framework that you use to manage the model layer objects in your application.It provides generalized and automated solutions to common tasks associated with object life cycle Read More …

Copying in Swift | Copy | Deep Copy (Pass By Value) | Shallow Copy (Pass By Reference) | Copy On Write | NSCopying Protocol | Copy With Zone

We will cover- Copy Deep Copy Shallow Copy Deep Copy Of Reference Types Copy On Write (COW) I am going to talk about copying objects in swift. Copying can be two ways — copy content and copy reference. Copy Content is also known as Deep Read More …

Swift – NSCoder | Codable | JSONDecoder | JSONEncoder | NSKeyedArchiver | NSKeyedUnarchiver | Serialize | Deserialize | Marshelling | Demarshelling | Parse JSON | Parse Plist

Source code : CodableExample.playground 2 Codable and NSKeyedArchiverBlog-master We can persist data by using NSCoder or Codable protocols and use NSKeyedArchiver to persist/save and NSKeyedUnarchiver to fetch data to and from user document directory respectively. Note: We have NSCoder (support still available Read More …

Bluetooth | Bluetooth low energy | Discovering & Connecting Peripherals | Swift

I already discussed about Bluetooth & Bluetooth fundamentals and discovering peripherals. We will now discuss about connecting from central to discovered peripheral. We will also learn discovering services and characteristics offered by peripheral. Let’s start discover:

delegate method as below:

As Read More …

Interview Questions | Bluetooth | Bluetooth low energy | Discovering Peripherals | Swift

Some interview question related to bluetooth low energy: You can get some answers from ble basics and discovering a peripheral through central Basic: What is classic bluetooth What is BLE 4.0 Classic bluetooth vs ble What is service What is characteristics Service vs Read More …

Bluetooth | Bluetooth low energy | Discovering Peripherals | Swift

We will learn about how central discovers peripheral devices and show them in a UITableView. Make sure to have read Bluetooth & Bluetooth fundamentals.

Wrap up : So to scan for peripherals the least steps are: Init CBCentralManager Implement CBCentralManager delegate method Read More …

iOS | OS Basics | Threads | NSThreads | pThreads | GCD

We will learn basics of operating system and their relation with threads, and apple’s GCD also known as Grand Central Dispatch. You can view this PPT on this link also: https://docs.google.com/presentation/d/1tsJMbiuotfEhogP7oMAAaS7uCApuaSF3A0dOa4-LUfI/edit?usp=sharing You can view this PPT on this link also: Read More …

Swift – Using Objective C Code In Swift Class | Objective C Bridging Header

We will learn about configuring Xcode so that swift files can call objective c code. What : Objective C Bridging Header works as a bridge in between objective c and swift code. This bridge enables swift classes to use objective c Read More …

Swift – Optional | Implicit Optional | Optional Binding | Optional Unwrapping

We will learn about Optionals?, their unwrapping, implicitly unwrapped optional!, optional binding and automatic unwrapping. Normal Optionals : What : Optionals (normal) are data types, which have value or nothing. ? mark is used to denote optional. Optional means , it Read More …