From 88a8820f958b3e33d62c27738f32ac859a7cd8ba Mon Sep 17 00:00:00 2001 From: David Idmansour Date: Mon, 18 Jun 2018 11:17:16 +0200 Subject: [PATCH] created latest chatrooms widget target + interface --- .../Base.lproj/MainInterface.storyboard | 134 ++++++++++++++++++ latestChatroomsWidget/Info.plist | 31 ++++ latestChatroomsWidget/TodayViewController.h | 12 ++ latestChatroomsWidget/TodayViewController.m | 37 +++++ 4 files changed, 214 insertions(+) create mode 100644 latestChatroomsWidget/Base.lproj/MainInterface.storyboard create mode 100644 latestChatroomsWidget/Info.plist create mode 100644 latestChatroomsWidget/TodayViewController.h create mode 100644 latestChatroomsWidget/TodayViewController.m diff --git a/latestChatroomsWidget/Base.lproj/MainInterface.storyboard b/latestChatroomsWidget/Base.lproj/MainInterface.storyboard new file mode 100644 index 000000000..ec60bb8f3 --- /dev/null +++ b/latestChatroomsWidget/Base.lproj/MainInterface.storyboard @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latestChatroomsWidget/Info.plist b/latestChatroomsWidget/Info.plist new file mode 100644 index 000000000..43f038dd9 --- /dev/null +++ b/latestChatroomsWidget/Info.plist @@ -0,0 +1,31 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Linphone - Latest Chatrooms + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionMainStoryboard + MainInterface + NSExtensionPointIdentifier + com.apple.widget-extension + + + diff --git a/latestChatroomsWidget/TodayViewController.h b/latestChatroomsWidget/TodayViewController.h new file mode 100644 index 000000000..785634a33 --- /dev/null +++ b/latestChatroomsWidget/TodayViewController.h @@ -0,0 +1,12 @@ +// +// TodayViewController.h +// latestChatroomsWidget +// +// Created by David Idmansour on 18/06/2018. +// + +#import + +@interface TodayViewController : UIViewController + +@end diff --git a/latestChatroomsWidget/TodayViewController.m b/latestChatroomsWidget/TodayViewController.m new file mode 100644 index 000000000..501fd8354 --- /dev/null +++ b/latestChatroomsWidget/TodayViewController.m @@ -0,0 +1,37 @@ +// +// TodayViewController.m +// latestChatroomsWidget +// +// Created by David Idmansour on 18/06/2018. +// + +#import "TodayViewController.h" +#import + +@interface TodayViewController () + +@end + +@implementation TodayViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult))completionHandler { + // Perform any setup necessary in order to update the view. + + // If an error is encountered, use NCUpdateResultFailed + // If there's no update required, use NCUpdateResultNoData + // If there's an update, use NCUpdateResultNewData + + completionHandler(NCUpdateResultNewData); +} + +@end