This repository was archived by the owner on May 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Adding Reachability project #30
Open
luisMedrano
wants to merge
3
commits into
microsoft:develop
Choose a base branch
from
luisMedrano:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
358 changes: 358 additions & 0 deletions
358
Scenarios/Reachability/iOSReachability.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...arios/Reachability/iOSReachability.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // | ||
| // AppDelegate.h | ||
| // iOSReachability | ||
| // | ||
| // Created by Luis Meddrano-Zaldivar on 4/19/17. | ||
| // Copyright © 2017 Luis Meddrano-Zaldivar. All rights reserved. | ||
| // | ||
|
|
||
| #import <UIKit/UIKit.h> | ||
|
|
||
| @interface AppDelegate : UIResponder <UIApplicationDelegate> | ||
|
|
||
| @property (strong, nonatomic) UIWindow *window; | ||
|
|
||
|
|
||
| @end | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| // | ||
| // AppDelegate.m | ||
| // iOSReachability | ||
| // | ||
| // Created by Luis Meddrano-Zaldivar on 4/19/17. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each app needs the standard Microsoft MIT licensing notice. Check out the other samples to grab this. |
||
| // Copyright © 2017 Luis Meddrano-Zaldivar. All rights reserved. | ||
| // | ||
|
|
||
| #import "AppDelegate.h" | ||
| #import "MainViewController.h" | ||
|
|
||
| #ifdef WINOBJC | ||
| #import "UWP/WindowsUIViewManagement.h" | ||
| #import "UWP/WindowsFoundationMetadata.h" | ||
| #endif | ||
| #ifdef WINOBJC | ||
|
|
||
| // Tell the WinObjC runtime how large to render the application | ||
| @implementation UIApplication (UIApplicationInitialStartupMode) | ||
| + (void)setStartupDisplayMode:(WOCDisplayMode*)mode { | ||
| mode.autoMagnification = TRUE; | ||
| mode.sizeUIWindowToFit = TRUE; | ||
| mode.clampScaleToClosestExpected = FALSE; | ||
| mode.fixedWidth = 0; | ||
| mode.fixedHeight = 0; | ||
| mode.magnification = 1.0; | ||
| } | ||
| @end | ||
| #endif | ||
|
|
||
|
|
||
| @interface AppDelegate () | ||
|
|
||
| @end | ||
|
|
||
| @implementation AppDelegate | ||
|
|
||
|
|
||
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | ||
| //Generating Navegation controller: | ||
| self.window = [[UIWindow alloc] | ||
| initWithFrame:[[UIScreen mainScreen] | ||
| bounds]]; | ||
| self.window.rootViewController = [[UINavigationController alloc] | ||
| initWithRootViewController:[[MainViewController alloc] | ||
| init]]; | ||
| [self.window makeKeyAndVisible]; | ||
| return YES; | ||
| } | ||
|
|
||
|
|
||
| - (void)applicationWillResignActive:(UIApplication *)application { | ||
| // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | ||
| // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. | ||
| } | ||
|
|
||
|
|
||
| - (void)applicationDidEnterBackground:(UIApplication *)application { | ||
| // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. | ||
| // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | ||
| } | ||
|
|
||
|
|
||
| - (void)applicationWillEnterForeground:(UIApplication *)application { | ||
| // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. | ||
| } | ||
|
|
||
|
|
||
| - (void)applicationDidBecomeActive:(UIApplication *)application { | ||
| // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | ||
| } | ||
|
|
||
|
|
||
| - (void)applicationWillTerminate:(UIApplication *)application { | ||
| // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | ||
| } | ||
|
|
||
|
|
||
| @end | ||
38 changes: 38 additions & 0 deletions
38
Scenarios/Reachability/iOSReachability/Assets.xcassets/AppIcon.appiconset/Contents.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "images" : [ | ||
| { | ||
| "idiom" : "iphone", | ||
| "size" : "29x29", | ||
| "scale" : "2x" | ||
| }, | ||
| { | ||
| "idiom" : "iphone", | ||
| "size" : "29x29", | ||
| "scale" : "3x" | ||
| }, | ||
| { | ||
| "idiom" : "iphone", | ||
| "size" : "40x40", | ||
| "scale" : "2x" | ||
| }, | ||
| { | ||
| "idiom" : "iphone", | ||
| "size" : "40x40", | ||
| "scale" : "3x" | ||
| }, | ||
| { | ||
| "idiom" : "iphone", | ||
| "size" : "60x60", | ||
| "scale" : "2x" | ||
| }, | ||
| { | ||
| "idiom" : "iphone", | ||
| "size" : "60x60", | ||
| "scale" : "3x" | ||
| } | ||
| ], | ||
| "info" : { | ||
| "version" : 1, | ||
| "author" : "xcode" | ||
| } | ||
| } |
27 changes: 27 additions & 0 deletions
27
Scenarios/Reachability/iOSReachability/Base.lproj/LaunchScreen.storyboard
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
| <dependencies> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/> | ||
| <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
| </dependencies> | ||
| <scenes> | ||
| <!--View Controller--> | ||
| <scene sceneID="EHf-IW-A2E"> | ||
| <objects> | ||
| <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
| <layoutGuides> | ||
| <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> | ||
| <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> | ||
| </layoutGuides> | ||
| <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
| <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
| </view> | ||
| </viewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| <point key="canvasLocation" x="53" y="375"/> | ||
| </scene> | ||
| </scenes> | ||
| </document> |
26 changes: 26 additions & 0 deletions
26
Scenarios/Reachability/iOSReachability/Base.lproj/Main.storyboard
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> | ||
| <dependencies> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/> | ||
| <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
| </dependencies> | ||
| <scenes> | ||
| <!--View Controller--> | ||
| <scene sceneID="tne-QT-ifu"> | ||
| <objects> | ||
| <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController"> | ||
| <layoutGuides> | ||
| <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> | ||
| <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> | ||
| </layoutGuides> | ||
| <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
| <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
| </view> | ||
| </viewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| </scene> | ||
| </scenes> | ||
| </document> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // | ||
| // BaseTableView.h | ||
| // ObjCTableViewNoNib | ||
| // | ||
| // Created by Luis Meddrano-Zaldivar on 4/21/17. | ||
| // Copyright © 2017 Luis Meddrano-Zaldivar. All rights reserved. | ||
| // | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each app needs the standard Microsoft MIT licensing notice. Check out the other samples to grab this. |
||
|
|
||
| #import <UIKit/UIKit.h> | ||
|
|
||
| @interface BaseTableView : UIViewController <UITableViewDelegate,UITableViewDataSource,UITextViewDelegate> | ||
|
|
||
| @property NSArray *content; | ||
| @property UITableView *tableView; | ||
| @property NSMutableAttributedString* bufferedOutText; | ||
| @property UITextView *delegateOutputTextView; | ||
|
|
||
| -(void)appendToPrintBuffer:(id)format, ...; | ||
| -(void)clearLogFromTextView; | ||
| -(void)printColoredDebugInfo:(NSString*) string using:(UIColor*)color ; | ||
| -(void)printAndscrollDelegateTextViewToBottom; | ||
| -(void)configurePropertiesAndViews; | ||
|
|
||
| @end | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each app needs the standard Microsoft MIT licensing notice. Check out the other samples to grab this.