simple ui with clickable thumbnails

This commit is contained in:
David Idmansour 2018-06-07 17:16:26 +02:00
parent ce9cc56c68
commit 77bbd1d07d
3 changed files with 4778 additions and 10 deletions

File diff suppressed because it is too large Load diff

View file

@ -8,5 +8,10 @@
#import <UIKit/UIKit.h>
@interface TodayViewController : UIViewController
@property (strong, nonatomic) IBOutletCollection(UIStackView) NSArray *stackViews;
- (IBAction)firstButtonTapped;
- (IBAction)secondButtonTapped;
- (IBAction)thirdButtonTapped;
- (IBAction)fourthButtonTapped;
@end

View file

@ -34,4 +34,24 @@
completionHandler(NCUpdateResultNewData);
}
- (void)launchAppWithURL:(NSURL *) url {
[self.extensionContext openURL:url
completionHandler:nil];
}
- (IBAction)firstButtonTapped {
[self launchAppWithURL:[NSURL URLWithString:@"sip://"]];
}
- (IBAction)secondButtonTapped {
[self launchAppWithURL:[NSURL URLWithString:@"sip://"]];
}
- (IBAction)thirdButtonTapped {
[self launchAppWithURL:[NSURL URLWithString:@"sip://"]];
}
- (IBAction)fourthButtonTapped {
[self launchAppWithURL:[NSURL URLWithString:@"sip://"]];
}
@end