(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
- (UIViewController *)topViewController{ | |
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
} | |
- (UIViewController *)topViewController:(UIViewController *)rootViewController | |
{ | |
if (rootViewController.presentedViewController == nil) { | |
return rootViewController; | |
} | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Xcode 6.2 (6C131e) | |
Swift version 1.1 (swift-600.0.57.4) | |
Target: x86_64-apple-darwin14.1.0 | |
# Xcode 6.3 (6D570) | |
Apple Swift version 1.2 (swiftlang-602.0.49.3 clang-clang-602.0.49) | |
Target: x86_64-apple-darwin14.1.0 | |
# Xcode 6.3.1 (6D1002) | |
Apple Swift version 1.2 (swiftlang-602.0.49.6 clang-602.0.49) |
headers: | |
_ASAsyncTransaction.h | |
_ASAsyncTransactionGroup.h | |
_ASDisabledPanUITextView.h | |
_ASDisplayLayer.h | |
_ASDisplayLayerDelegate-Protocol.h | |
_ASDisplayView.h | |
_ASImageNodeDrawParameters.h | |
_ASPendingState.h | |
_ASTextNodeCachedMetrics.h |
let styles: [UIFont.TextStyle] = [ | |
// iOS 17 | |
.extraLargeTitle, .extraLargeTitle2, | |
// iOS 11 | |
.largeTitle, | |
// iOS 9 | |
.title1, .title2, .title3, .callout, | |
// iOS 7 | |
.headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
] |
https://habrahabr.ru/post/129557/
UIViewController согласно шаблону проектирования MVC обеспечивает взаимосвязь