Swift Observer & Notification Pattern Tutorial - iOS Communication Patterns Part 2

preview_player
Показать описание
The next topic in my series on iOS Interview questions explains the Observer and Notification Communication Pattern in Swift. This is a fundamental question in iOS development and I was asked about it a lot during my interviews. In this tutorial I'll walk you through how the observer and notification pattern in Swift works, using Xcode.

iOS Communication Patterns Part 1 - Delegates & Protocols:

This is part of a series of videos about iOS interview questions in Swift. Check out the overview where I list and briefly discuss all the topics that are in this series:

Project Source Code:

iOS Dev Courses:

Twitter:

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:

Donny Wals - Combine:

Mark Moeyken’s SwiftUI Books:

Ray Wenderlich Books:

#swift #softwaredeveloper #iosdeveloper
Рекомендации по теме
Комментарии
Автор

Love the pace, didn't need to watch at 1.25x like many other channels

rsdntevl
Автор

use of star wars app gives "Force unwrap" a whole new shiny feeling

drforest
Автор

I dig your videos Sean. Words cannot say how much youve saved my iOS dev ass.

eluphantakrr
Автор

I agree with a few others who have shared the same sentiment. I love your pace. It gets really boring when people talk slowly fabricating a personality that is not true to theirs, your videos are amazing because it is very organic. And if I want to pay attention very loosely, l could always use the speed controls in YouTube to slow down the video. Again, love your tutorials!

scarlet
Автор

Jesus, if I had found your videos last January I would have passed interviews with flying colors. SUPERB!!!

duncanwallace
Автор

You're literally my Home Page, Sean. I really admire your dedication and hard work for us, thank you once again!

zzaaazz
Автор

Great quick intro to Notifications. Quick thing I wanted to point out, with iOS 9, it is no longer necessary for an NotificationCenter observer to un-register itself when being deallocated.

AbhishekBanthia
Автор

very good video, nobody on youtube is as clear and conscience as you

jelly
Автор

I press like before i even watch. Because i know video will be with high educational quality. Thank you very much for your incredible work

BekaDemuradze
Автор

Thank you Sean Allen for your tutorial. Appreciated can watch so helpful videos here before my interview tomorrow. I am watching your video on 0.75 pace. :)

ericho
Автор

Best explanation.
Searched for hours.
THANK YOU!

infinite
Автор

I have just found your channel. Its great. Explanations are short and acurate. I want to be an ios and mac developer myself but i have done a java boot camp because there was no swift on here in poland ;(

Himegw
Автор

Love your videos! Especially this one solved all the problems I've been struggling of. Thanks!

어플-mf
Автор

Great Video! Saved me from a huge headache with protocols . Thank you

SainvilHeisman
Автор

Great tutorials Sean! I love all of them. Keep going.

khislatjonvalijonov
Автор

Here I list pros and cons for notifications observer - please correct me if I'm wrong or if I missed anything. Thanks in advanced!
pros:
1. Observer encapsulate the details of what should do after received the signal
2. A link(reference) between observer and notifiers is not required
Cons:
1. Observer could be messier - since observer has to handle all scenarios (many) after received the notifications.
2. Notifier should know the name of notification - should be defined public, otherwise, once your change a name of notification, you would need to change all where you declare it.
3. Before iOS 9, it requires a clean up for observer.

deletage-protocol
pros:
1.Intern has less code
cons:
1. requires a reference between Boss to Intern
2. Details of what an Intern should do is exposed - against the encapsulation.

monicaluo
Автор

Here we go again, I watch it for the fifth time with

Денис-жфр
Автор

Thanks Sean. Love to see your tutorials!

prashantsharma-nwcc
Автор

Well. That was real quick and really helpful.

rohanghorpade
Автор

Absolutely amazing videos man ! God bless you I absolutely love them ! To the point, with a great pace, Keep up

ahmedsurvival
join shbcf.ru