Learning about Reachability in iOS with iOS 12, Xcode 10, and Swift 4.2

Share this & earn $10
raywenderlich.com
Published at : 24 Dec 2020
7729 views
112
9

In this screencast, learn how you can handle and detect Internet connection issues using reachability.

View episode and Download Materials:

https://www.raywenderlich.com/5963-reachability-in-ios

---

About www.raywenderlich.com:

raywenderlich.com is a website focused on developing high quality programming tutorials. Our goal is to take the coolest and most challenging topics and make them easy for everyone to learn – so we can all make amazing apps.

We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers!

---

The SCNetworkReachability programming interface allows an application to determine the status of a system's current network configuration and the reachability of a target host. A remote host is considered reachable when a data packet, sent by an application into the network stack, can leave the local device. Reachability does not guarantee that the data packet will actually be received by the host.

The SCNetworkReachability programming interface supports a synchronous and an asynchronous model. In the synchronous model, you get the reachability status by calling the SCNetworkReachabilityGetFlags(_:_:) function. In the asynchronous model, you can schedule the SCNetworkReachability object on the run loop of a client object’s thread. The client implements a callback function to receive notifications when the reachability status of a given remote host changes. Note that these functions follow Core Foundation naming conventions. A function that has "Create" or "Copy" in its name returns a reference you must release with the CFRelease function.

For information about detecting and interpreting errors generated by calling these functions, see System Configuration.
reachabilityreachability iosreachability swift 4.2

2014 Hyundai Equus Signature vs Ultimate Test Drive & Luxury Car Video Review

2014 Hyundai Equus Signature vs Ultimate Test Drive & Luxury Car Video Review

🔴Crushing Crunchy & Soft Things by Car! Experiment Car vs Cola, Different Fanta Candy Balloons toys

🔴Crushing Crunchy & Soft Things by Car! Experiment Car vs Cola, Different Fanta Candy Balloons toys

Suppertime - Jim Reeves

Suppertime - Jim Reeves

IS THIS WHOLE THING A SHAM?

IS THIS WHOLE THING A SHAM?

WYR GEMI - Luxury

WYR GEMI - Luxury

Plenty of evidence suggests Trump is fulfilling prophecy, leading America back to God

Plenty of evidence suggests Trump is fulfilling prophecy, leading America back to God

Sony 35mm 1.4 GM vs Sony 24mm 1.4 GM // WHICH LENS SHOULD YOU GET?

Sony 35mm 1.4 GM vs Sony 24mm 1.4 GM // WHICH LENS SHOULD YOU GET?

Jail (Lyrical) | Mankirt Aulakh Feat Fateh | Deep Jandu | Sukh Sanghera | Latest Punjabi Song 2020

Jail (Lyrical) | Mankirt Aulakh Feat Fateh | Deep Jandu | Sukh Sanghera | Latest Punjabi Song 2020

УРА! УЖЕ ЗАВТРА ТЫ САМ ВЫБЕРЕШЬ СЕБЕ ХАЛЯВУ ОТ WG В World of Tanks!

УРА! УЖЕ ЗАВТРА ТЫ САМ ВЫБЕРЕШЬ СЕБЕ ХАЛЯВУ ОТ WG В World of Tanks!

AmartyaSen #1 on Capabilities

AmartyaSen #1 on Capabilities

Sculpting, but half the clay each time - How SMALL can I go?!...

Sculpting, but half the clay each time - How SMALL can I go?!...

The Only Adopted Girl in the Family of Boys   My Animated Story

The Only Adopted Girl in the Family of Boys My Animated Story

HISTOGRAM Explained For WILDLIFE Photography - How To READ Histograms For Correct Exposure

HISTOGRAM Explained For WILDLIFE Photography - How To READ Histograms For Correct Exposure

Reviews Digital, a company that specializes in Online Reputation Management for businesses

Reviews Digital, a company that specializes in Online Reputation Management for businesses

BODYBUILDING MOTIVATION - LIGHT WEIGHT BABY

BODYBUILDING MOTIVATION - LIGHT WEIGHT BABY

BETTER THAN TAKEOUT - Easy Mongolian Beef Recipe

BETTER THAN TAKEOUT - Easy Mongolian Beef Recipe

Lonr. ‒ A.M. "Say, hop outta bed, rock out again" [Bass Boosted] [TikTok]

Lonr. ‒ A.M. "Say, hop outta bed, rock out again" [Bass Boosted] [TikTok]

A superb Bi-folding door installation for a celebrity client Tel Express on : 0800 121 4809

A superb Bi-folding door installation for a celebrity client Tel Express on : 0800 121 4809

World’s Longest Streamer Hits 2100 Hours - And Counting | TOTALLY GAME

World’s Longest Streamer Hits 2100 Hours - And Counting | TOTALLY GAME

How to Make Money on a Small Farm

How to Make Money on a Small Farm

Limp Bizkit - It'll Be OK [TA]

Limp Bizkit - It'll Be OK [TA]

El Columpio Asesino - Toro (Andre VII Remix Official)

El Columpio Asesino - Toro (Andre VII Remix Official)

It's Good to be the King

It's Good to be the King

Long term shelter

Long term shelter

Top quality Big Kota Goats is Rehman Goat Farm, Cont-Akil Bhai, 91668 00142, Nafees Bhai, 9829420512

Top quality Big Kota Goats is Rehman Goat Farm, Cont-Akil Bhai, 91668 00142, Nafees Bhai, 9829420512

PART 2 - BATHROOM DECORATING IDEAS - SHOWER CURTAIN AND DECORATIVE TOWELS

PART 2 - BATHROOM DECORATING IDEAS - SHOWER CURTAIN AND DECORATIVE TOWELS

Area 3 2021 SLC Closing Session

Area 3 2021 SLC Closing Session

Belly - Consuela ft. Young Thug, Zack (Official Video)

Belly - Consuela ft. Young Thug, Zack (Official Video)

Alip Ba Ta vs Gabriella Quevedo (fingerstyle cover) Queen - We Are The Champions

Alip Ba Ta vs Gabriella Quevedo (fingerstyle cover) Queen - We Are The Champions

BUILDINGS at scale - 3D animation

BUILDINGS at scale - 3D animation

Gamers! - Tendou x Amano Moments Part 1 |ENG SUB|

Gamers! - Tendou x Amano Moments Part 1 |ENG SUB|

THE AT HOME STORE FALL & CHRISTMAS DECOR‼️🤩

THE AT HOME STORE FALL & CHRISTMAS DECOR‼️🤩

LiQWYD - I Need You

LiQWYD - I Need You

1 Chronicles 1-9 - Jon Courson

1 Chronicles 1-9 - Jon Courson

Marvel HeroClix: Fantastic Four Future Foundation Unboxing with Scott Porter- Day 1

Marvel HeroClix: Fantastic Four Future Foundation Unboxing with Scott Porter- Day 1

How To Connect Notes Within Chord Changes | Bass Lesson

How To Connect Notes Within Chord Changes | Bass Lesson

Madonna - Live To Tell (Official Music Video)

Madonna - Live To Tell (Official Music Video)

Jacob Lee - Demons (Philosophical Sessions)

Jacob Lee - Demons (Philosophical Sessions)

SYLLOGISM || Only a Few || Lesson-8

SYLLOGISM || Only a Few || Lesson-8

this beat will make you cry

this beat will make you cry

How to Duplicate Videos and Photos in Premiere Pro

How to Duplicate Videos and Photos in Premiere Pro

박재범 Jay Park '사실은 The Truth Is' [Official Music Video]

박재범 Jay Park '사실은 The Truth Is' [Official Music Video]

Astrid S - It's Ok If You Forget Me (Official Music Video)

Astrid S - It's Ok If You Forget Me (Official Music Video)

'As important as Tendulkar': Waugh on Dravid

'As important as Tendulkar': Waugh on Dravid

Not personalizing a narcissist's behavior vs. not taking it personally

Not personalizing a narcissist's behavior vs. not taking it personally

Off to Bed

Off to Bed

'Mama Deva Deva' by Jahnavi Harrison MantraLive

'Mama Deva Deva' by Jahnavi Harrison MantraLive

Youtuber BANNED From Star Program.. THIS WILL SHOCK YOU!

Youtuber BANNED From Star Program.. THIS WILL SHOCK YOU!

SYND 24/12/1970 HASHISH MADE BY PAKISTAN TRIBESMEN

SYND 24/12/1970 HASHISH MADE BY PAKISTAN TRIBESMEN