Submit Search
Upload
iOS NotificationCenter intro
•
0 likes
•
403 views
Jintin Lin
Follow
How to use iOS NotificationCenter to dispatch information like observer pattern.
Read less
Read more
Technology
Report
Share
Report
Share
1 of 12
Download now
Download to read offline
Recommended
What's New in User Notifications Framework - WWDC16. Meetup @Wantedly with 日本...
What's New in User Notifications Framework - WWDC16. Meetup @Wantedly with 日本...
将之 小野
Local Notifications @ Melbourne Cocoaheads (Aug 10)
Local Notifications @ Melbourne Cocoaheads (Aug 10)
Rob C
FI MUNI 2012 - iOS Basics
FI MUNI 2012 - iOS Basics
Petr Dvorak
Get step-by-step instructions on implementing notifications in your apps.
Get step-by-step instructions on implementing notifications in your apps.
Jigar Maheshwari
MFF UK - Introduction to iOS
MFF UK - Introduction to iOS
Petr Dvorak
KVO implementation
KVO implementation
Jintin Lin
Configure & send push notification on i os device
Configure & send push notification on i os device
ShepHertz
iPhone dev intro
iPhone dev intro
Vonbo
Recommended
What's New in User Notifications Framework - WWDC16. Meetup @Wantedly with 日本...
What's New in User Notifications Framework - WWDC16. Meetup @Wantedly with 日本...
将之 小野
Local Notifications @ Melbourne Cocoaheads (Aug 10)
Local Notifications @ Melbourne Cocoaheads (Aug 10)
Rob C
FI MUNI 2012 - iOS Basics
FI MUNI 2012 - iOS Basics
Petr Dvorak
Get step-by-step instructions on implementing notifications in your apps.
Get step-by-step instructions on implementing notifications in your apps.
Jigar Maheshwari
MFF UK - Introduction to iOS
MFF UK - Introduction to iOS
Petr Dvorak
KVO implementation
KVO implementation
Jintin Lin
Configure & send push notification on i os device
Configure & send push notification on i os device
ShepHertz
iPhone dev intro
iPhone dev intro
Vonbo
Beginning to iPhone development
Beginning to iPhone development
Vonbo
Notification Framework
Notification Framework
Sokna Ly
Super Apps Webcast February 2010
Super Apps Webcast February 2010
inteist
Fiware cloud capabilities_and_setting_up_your_environment
Fiware cloud capabilities_and_setting_up_your_environment
Miguel García González
Net campus15 notification-hub
Net campus15 notification-hub
DotNetCampus
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUB
DotNetCampus
Quick Start to iOS Development
Quick Start to iOS Development
Jussi Pohjolainen
Ntxissacsc5 red 1 & 2 basic hacking tools ncc group
Ntxissacsc5 red 1 & 2 basic hacking tools ncc group
North Texas Chapter of the ISSA
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
Michael Peacock
아이폰강의(3)
아이폰강의(3)
sunwooindia
iOS 101 - Xcode, Objective-C, iOS APIs
iOS 101 - Xcode, Objective-C, iOS APIs
Subhransu Behera
David Thiel - Secure Development On iOS
David Thiel - Secure Development On iOS
Source Conference
Pioc
Pioc
Tom Sun
Node.js
Node.js
Ian Oxley
Android Workshop 2013
Android Workshop 2013
Junda Ong
ioS Einstieg und Ausblick - Mobile DevCon Hamburg 2011 - OPITZ CONSULTING - S...
ioS Einstieg und Ausblick - Mobile DevCon Hamburg 2011 - OPITZ CONSULTING - S...
OPITZ CONSULTING Deutschland
Mobile Security Assessment: 101
Mobile Security Assessment: 101
wireharbor
Azure notification hubs
Azure notification hubs
Dinusha Kumarasiri
Dependency Injection with Apex
Dependency Injection with Apex
Salesforce Developers
Index the obvious and not so obvious
Index the obvious and not so obvious
Harry Zheng
KSP intro
KSP intro
Jintin Lin
Annotation Processing
Annotation Processing
Jintin Lin
More Related Content
Similar to iOS NotificationCenter intro
Beginning to iPhone development
Beginning to iPhone development
Vonbo
Notification Framework
Notification Framework
Sokna Ly
Super Apps Webcast February 2010
Super Apps Webcast February 2010
inteist
Fiware cloud capabilities_and_setting_up_your_environment
Fiware cloud capabilities_and_setting_up_your_environment
Miguel García González
Net campus15 notification-hub
Net campus15 notification-hub
DotNetCampus
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUB
DotNetCampus
Quick Start to iOS Development
Quick Start to iOS Development
Jussi Pohjolainen
Ntxissacsc5 red 1 & 2 basic hacking tools ncc group
Ntxissacsc5 red 1 & 2 basic hacking tools ncc group
North Texas Chapter of the ISSA
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
Michael Peacock
아이폰강의(3)
아이폰강의(3)
sunwooindia
iOS 101 - Xcode, Objective-C, iOS APIs
iOS 101 - Xcode, Objective-C, iOS APIs
Subhransu Behera
David Thiel - Secure Development On iOS
David Thiel - Secure Development On iOS
Source Conference
Pioc
Pioc
Tom Sun
Node.js
Node.js
Ian Oxley
Android Workshop 2013
Android Workshop 2013
Junda Ong
ioS Einstieg und Ausblick - Mobile DevCon Hamburg 2011 - OPITZ CONSULTING - S...
ioS Einstieg und Ausblick - Mobile DevCon Hamburg 2011 - OPITZ CONSULTING - S...
OPITZ CONSULTING Deutschland
Mobile Security Assessment: 101
Mobile Security Assessment: 101
wireharbor
Azure notification hubs
Azure notification hubs
Dinusha Kumarasiri
Dependency Injection with Apex
Dependency Injection with Apex
Salesforce Developers
Index the obvious and not so obvious
Index the obvious and not so obvious
Harry Zheng
Similar to iOS NotificationCenter intro
(20)
Beginning to iPhone development
Beginning to iPhone development
Notification Framework
Notification Framework
Super Apps Webcast February 2010
Super Apps Webcast February 2010
Fiware cloud capabilities_and_setting_up_your_environment
Fiware cloud capabilities_and_setting_up_your_environment
Net campus15 notification-hub
Net campus15 notification-hub
AZURE NOTIFICATION HUB
AZURE NOTIFICATION HUB
Quick Start to iOS Development
Quick Start to iOS Development
Ntxissacsc5 red 1 & 2 basic hacking tools ncc group
Ntxissacsc5 red 1 & 2 basic hacking tools ncc group
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
아이폰강의(3)
아이폰강의(3)
iOS 101 - Xcode, Objective-C, iOS APIs
iOS 101 - Xcode, Objective-C, iOS APIs
David Thiel - Secure Development On iOS
David Thiel - Secure Development On iOS
Pioc
Pioc
Node.js
Node.js
Android Workshop 2013
Android Workshop 2013
ioS Einstieg und Ausblick - Mobile DevCon Hamburg 2011 - OPITZ CONSULTING - S...
ioS Einstieg und Ausblick - Mobile DevCon Hamburg 2011 - OPITZ CONSULTING - S...
Mobile Security Assessment: 101
Mobile Security Assessment: 101
Azure notification hubs
Azure notification hubs
Dependency Injection with Apex
Dependency Injection with Apex
Index the obvious and not so obvious
Index the obvious and not so obvious
More from Jintin Lin
KSP intro
KSP intro
Jintin Lin
Annotation Processing
Annotation Processing
Jintin Lin
我的開源之旅
我的開源之旅
Jintin Lin
Dagger 2 vs koin
Dagger 2 vs koin
Jintin Lin
ButterKnife
ButterKnife
Jintin Lin
數學系的資訊人生
數學系的資訊人生
Jintin Lin
Instant app Intro
Instant app Intro
Jintin Lin
App design guide
App design guide
Jintin Lin
J霧霾
J霧霾
Jintin Lin
transai
transai
Jintin Lin
Swimat - Swift formatter
Swimat - Swift formatter
Jintin Lin
Swift Tutorial 2
Swift Tutorial 2
Jintin Lin
Swift Tutorial 1
Swift Tutorial 1
Jintin Lin
Andle
Andle
Jintin Lin
Realism vs Flat design
Realism vs Flat design
Jintin Lin
Android Service Intro
Android Service Intro
Jintin Lin
More from Jintin Lin
(16)
KSP intro
KSP intro
Annotation Processing
Annotation Processing
我的開源之旅
我的開源之旅
Dagger 2 vs koin
Dagger 2 vs koin
ButterKnife
ButterKnife
數學系的資訊人生
數學系的資訊人生
Instant app Intro
Instant app Intro
App design guide
App design guide
J霧霾
J霧霾
transai
transai
Swimat - Swift formatter
Swimat - Swift formatter
Swift Tutorial 2
Swift Tutorial 2
Swift Tutorial 1
Swift Tutorial 1
Andle
Andle
Realism vs Flat design
Realism vs Flat design
Android Service Intro
Android Service Intro
Recently uploaded
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Neo4j
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
HostedbyConfluent
Recently uploaded
(20)
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
iOS NotificationCenter intro
1.
NotificationCenter Jintin
2.
How to dispatch Information
?
3.
Hollywood Principle
4.
Observer Pattern
5.
Observer Pattern • Event
Driven • Easy to write • Decoupling
6.
Observer Pattern Observer Subject Register
/ Unregister Notify
7.
iOS NotificationCenter
8.
iOS NotificationCenter Observer Notification CenteraddObserver / removeObserver post
notification Subject Call Selector
9.
iOS NotificationCenter • Define
new Notification.Name • Add Observer to NotificationCenter with callback Selector by given Notification.Name • Post event to NotificationCenter with associate Notification.Name • Remove Observer when stop listening
10.
Code sample // Define
key let key = Notification.Name("name") // Register to receive notification NotificationCenter.default.addObserver(self, selector: #selector(callback), name: key, object: nil) // Post notification NotificationCenter.default.post(name: key, object: nil) // Stop listening notification NotificationCenter.default.removeObserver(self, name: key, object: nil);
11.
Pros & Cons •
Easy to write • Less code • Decouple • …. • Hard to debug • Hard to maintain • Leak • ….
12.
Q&A
Download now