Skip to content

Instantly share code, notes, and snippets.

View Headmast's full-sized avatar

Kirill Klebanov Headmast

  • Agro.Club
  • Voronezh, Russia
View GitHub Profile
@vidugloeck
vidugloeck / wwdc16_session_notes_template
Created June 14, 2016 14:00
WWDC 16 Session Note template
# 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>
@Headmast
Headmast / 2-2-base-dart.md
Last active September 30, 2020 08:03
Var and const in Dart.
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.
@leoru
leoru / ios-questions-interview.md
Created October 3, 2015 07:16 — forked from arturlector/ios-questions-interview.md
Вопросы на собеседование iOS разработчика.

Вопросы на собеседование iOS разработчика (дополненное издание):

General:

  • Что такое полиморфизм?

  • Что такое *инкапсуляция? Что такое *нарушение инкапсуляции?

  • Чем абстрактный класс отличается от интерфейса?

  • Расскажите о паттерне MVC. Чем отличается пассивная модель от активной?

@arturlector
arturlector / lifecycle_uiviewcontroller.md
Last active April 26, 2021 09:52
Цикл жизни UIViewController? UIViewController life cycle?

Цикл жизни UIViewController?

https://habrahabr.ru/post/129557/

Ответственность UIViewController

UIViewController согласно шаблону проектирования MVC обеспечивает взаимосвязь
@quellish
quellish / FBClasses.txt
Created August 15, 2015 01:50
Facebook iOS App Class List
headers:
_ASAsyncTransaction.h
_ASAsyncTransactionGroup.h
_ASDisabledPanUITextView.h
_ASDisplayLayer.h
_ASDisplayLayerDelegate-Protocol.h
_ASDisplayView.h
_ASImageNodeDrawParameters.h
_ASPendingState.h
_ASTextNodeCachedMetrics.h
@npu3pak
npu3pak / fix_twitter_warnings.sh
Last active August 20, 2023 16:39
This script fixes all TwitterKit related warnings in XCode 10.1. Add new run script build phase with this code:
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
@snikch
snikch / gist:3661188
Created September 6, 2012 23:16
Find the current top view controller for your iOS application
- (UIViewController *)topViewController{
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController];
}
- (UIViewController *)topViewController:(UIViewController *)rootViewController
{
if (rootViewController.presentedViewController == nil) {
return rootViewController;
}
@arturlector
arturlector / ios-questions-interview.md
Last active February 25, 2024 18:44
Вопросы на собеседование iOS разработчика.

Вопросы на собеседование iOS разработчика (дополненное издание):

General:

  • Что такое полиморфизм?

  • Что такое *инкапсуляция? Что такое *нарушение инкапсуляции?

  • Чем абстрактный класс отличается от интерфейса?

  • Расскажите о паттерне MVC. Чем отличается пассивная модель от активной?

//
// UIBarButtonItem+Badge.swift
// PiGuardMobile
//
// Created by Stefano Vettor on 12/04/16.
// Copyright © 2016 Stefano Vettor. All rights reserved.
//
import UIKit
@jls21
jls21 / How to run devices with new iOS version on old Xcode
Last active April 10, 2024 10:33
How to run devices with new iOS version on old Xcode
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