int a;
void awesomeFunction() {
double b;
int b1;
var text = "Hello world";
//text = a; //error: A value of type 'int' can't be assigned to a variable of type 'String'.
dynamic dyn;
dyn = text; // No error, works perfect.
readonly MODULEMAP="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap" | |
readonly HEADER="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Headers/TwitterCore.h" | |
if ! grep -q "TwitterCore_Private" "${MODULEMAP}"; then | |
cat >"${MODULEMAP}" <<EOL | |
module TwitterCore_Private { | |
} | |
EOL | |
fi |
The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).
My take-aways are:
-
You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.
-
Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse
If you are having device with new iOS version(iOS 10.3 for example), but don't wanna to update XCode 8.2.1. | |
It's very simple to run application on new iOS with old XCode. | |
Check this out. | |
Follow the steps: | |
1. Download .dmg file with new XCode from apple developer portal (https://developer.apple.com/download/more/). | |
2. Keep your old XCode and unarchive new XCode from .dmg file. | |
3. Goto (New XCode path)/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and copy folder with new iOS | |
4. Paste it to (Old XCode path)/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport |
# WWDC 2016 Session notes | |
This documents contains a complete list of all iOS related WWDC 16 sessions. | |
Please use this template to add your entries: | |
``` | |
__Brief Description__: | |
__Link to Notes__: <If applicable: Please add your notes in a seperate file in this folder (e.g. 402_what's_new_in_swift.md) and link it from here> | |
__Watched by:__ <atYourName, atAnotherName> |
https://habrahabr.ru/post/129557/
UIViewController согласно шаблону проектирования MVC обеспечивает взаимосвязь
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, | |
] |
headers: | |
_ASAsyncTransaction.h | |
_ASAsyncTransactionGroup.h | |
_ASDisabledPanUITextView.h | |
_ASDisplayLayer.h | |
_ASDisplayLayerDelegate-Protocol.h | |
_ASDisplayView.h | |
_ASImageNodeDrawParameters.h | |
_ASPendingState.h | |
_ASTextNodeCachedMetrics.h |