Enviar búsqueda
Cargar
iPhone NSNotification
•
Descargar como KEY, PDF
•
1 recomendación
•
761 vistas
孝文 田村
Seguir
SlideShareとkeynoteの練習を兼ねて。iPhoneアプリで使える、NSNotificationという通知の仕組みについての概要です。
Leer menos
Leer más
Desarrollo personal
Denunciar
Compartir
Denunciar
Compartir
1 de 10
Descargar ahora
Recomendados
Prototype presentation
Prototype presentation
ISsoft
Prototype Design Pattern
Prototype Design Pattern
melbournepatterns
Software Patterns
Software Patterns
Sudarsun Santhiappan
Chain of Responsibility
Chain of Responsibility
Yoshiori Shoji
Prototype Pattern
Prototype Pattern
Ider Zheng
Prototype pattern
Prototype pattern
Shakil Ahmed
Prototype design patterns
Prototype design patterns
Thaichor Seng
Design Pattern lecture 4
Design Pattern lecture 4
Julie Iskander
Recomendados
Prototype presentation
Prototype presentation
ISsoft
Prototype Design Pattern
Prototype Design Pattern
melbournepatterns
Software Patterns
Software Patterns
Sudarsun Santhiappan
Chain of Responsibility
Chain of Responsibility
Yoshiori Shoji
Prototype Pattern
Prototype Pattern
Ider Zheng
Prototype pattern
Prototype pattern
Shakil Ahmed
Prototype design patterns
Prototype design patterns
Thaichor Seng
Design Pattern lecture 4
Design Pattern lecture 4
Julie Iskander
C++11 Idioms @ Silicon Valley Code Camp 2012
C++11 Idioms @ Silicon Valley Code Camp 2012
Sumant Tambe
Design Patterns
Design Patterns
Anuja Arosha
Linked list
Linked list
akshat360
Behavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka Pradhan
Priyanka Pradhan
How to Create an Infographic with these 5 Delicious Elements
How to Create an Infographic with these 5 Delicious Elements
Katai Robert
How to design an infographic in 9 simple steps
How to design an infographic in 9 simple steps
Katai Robert
Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)
Aniruddha Chakrabarti
PowerPoint Tutorial Presentation - Tips & Tricks
PowerPoint Tutorial Presentation - Tips & Tricks
Niezette -
14 Principles of HENRI FAYOL project on KFC Class-XII
14 Principles of HENRI FAYOL project on KFC Class-XII
Atif Khan
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
Delhi Call girls
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
brynpueblos04
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
Call Girls in Nagpur High Profile Call Girls
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
Delhi Call girls
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
vikas rana
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
pastor83
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
Cara Menggugurkan Kandungan 087776558899
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
PsychicRuben LoveSpells
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
Delhi Call girls
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptx
padhand000
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
drae5
Más contenido relacionado
Destacado
C++11 Idioms @ Silicon Valley Code Camp 2012
C++11 Idioms @ Silicon Valley Code Camp 2012
Sumant Tambe
Design Patterns
Design Patterns
Anuja Arosha
Linked list
Linked list
akshat360
Behavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka Pradhan
Priyanka Pradhan
How to Create an Infographic with these 5 Delicious Elements
How to Create an Infographic with these 5 Delicious Elements
Katai Robert
How to design an infographic in 9 simple steps
How to design an infographic in 9 simple steps
Katai Robert
Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)
Aniruddha Chakrabarti
PowerPoint Tutorial Presentation - Tips & Tricks
PowerPoint Tutorial Presentation - Tips & Tricks
Niezette -
14 Principles of HENRI FAYOL project on KFC Class-XII
14 Principles of HENRI FAYOL project on KFC Class-XII
Atif Khan
Destacado
(9)
C++11 Idioms @ Silicon Valley Code Camp 2012
C++11 Idioms @ Silicon Valley Code Camp 2012
Design Patterns
Design Patterns
Linked list
Linked list
Behavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka Pradhan
How to Create an Infographic with these 5 Delicious Elements
How to Create an Infographic with these 5 Delicious Elements
How to design an infographic in 9 simple steps
How to design an infographic in 9 simple steps
Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)
PowerPoint Tutorial Presentation - Tips & Tricks
PowerPoint Tutorial Presentation - Tips & Tricks
14 Principles of HENRI FAYOL project on KFC Class-XII
14 Principles of HENRI FAYOL project on KFC Class-XII
Último
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
Delhi Call girls
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
brynpueblos04
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
Call Girls in Nagpur High Profile Call Girls
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
Delhi Call girls
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
vikas rana
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
pastor83
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
Cara Menggugurkan Kandungan 087776558899
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
PsychicRuben LoveSpells
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
Delhi Call girls
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptx
padhand000
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
drae5
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
Delhi Call girls
Último
(14)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptx
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
iPhone NSNotification
1.
NSNotification
2.
• NSNotification •
• • • •
3.
•
NSNotification • NSNotificationCenter • • / MyObjB NSNotification MyObjA NSNotificationCenter MySendObj MyObjC
4.
• • •
MyObjB “Hoge” “Hoge” MyObjA NSNotificationCenter MySendObj MyObjC ”foo”
5.
•
NSNotificationCenter • / • ” ” • • NSNotification userInfo(NSDictionary) release MyObjB MyObjA NSNotificationCenter MySendObj MyObjC
6.
• • • •
7.
MyObjB
”hoge” popupAlert [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(popupAlert:) name:@”hoge” object:nil]; MyObjB addObserver NSNotificationCenter
8.
MySendObj
”hoge” // NSNotification NSNotification* notification = [NSNotification notificationWithName: @”hoge” object:self userInfo:nil]; // [[NSNotificationCenter defaultCenter] postNotification:notification]; “Hoge” NSNotificationCenter MySendObj postNotification
9.
NSNotificationCenter
MyObjB popupAlert -(void)popupAlert:(NSNotification *)notification { // UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Sample" message:@” ” delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alert show]; [alert release]; } MyObjB “Hoge” NSNotificationCenter
10.
removeObserver - (void)dealloc {
// Notification [[NSNotificationCenter defaultCenter] removeObserver:self]; } MyObjB removeObserver NSNotificationCenter
Descargar ahora