This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wird bei jeder Notification (jeder Tastenanschlag) | |
-(void)type | |
{ | |
// Text in Kleinbuchstaben umwandeln und wieder in den View schreiben | |
self.handle.text = [self.handle.text lowercaseString]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Typische UIViewController Methode | |
// Wird ausgeführt wenn der View im Speicher | |
// vollständig geladen wurde. | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Wir sagen dem handle das er das mit dem Großbuchstaben bei | |
// neuen Wörtern einfach schon mal lassen soll. | |
self.handle.autocapitalizationType = UITextAutocapitalizationTypeNone; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// toProfileView wird vom NotificationCenter benachrichtigt und ausgeführt | |
-(void)toProfileView: (NSNotification *)notification | |
{ | |
// do Stuff... | |
UIView *object = [NSNotification object]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Irgendeine Methode in irgendeiner Klasse | |
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event | |
{ | |
// Das aktuelle default NotificationCenter holen und in Variable "nc" referenzieren | |
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; | |
// Mit nc können wir jetzt.... | |
[nc | |
postNotificationName:@"goToProfile" // Alle Abonnenten (subscriber) von "goToProfile" informieren... | |
object:self // und uns selbst bzw. die Instanz dieser Klasse (self) als Objekt übergeben |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Typische UIViewController Methode | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Das aktuelle default NotificationCenter holen und in Variable "nc" referenzieren | |
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; | |
// Mit nc können wir jetzt.... | |
[nc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var engine = new PHP ('<?php echo "Hello world!"; ?>'); | |
console.log( engine.vm.OUTPUT_BUFFER); // the outputted buffer from the script! |
NewerOlder