Skip to content

Instantly share code, notes, and snippets.

@sahara-ooga
Last active March 30, 2020 12:20
Show Gist options
  • Save sahara-ooga/5d4b834da40f105bd60ddd0e9f531200 to your computer and use it in GitHub Desktop.
Save sahara-ooga/5d4b834da40f105bd60ddd0e9f531200 to your computer and use it in GitHub Desktop.
iOS,Objective C のTips
2017-03-22 16:16:36.951166 2-1-7[8405:284511] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/sahara/Library/Developer/CoreSimulator/Devices/0F48C985-9F5C-4868-A6CF-7EC90F3BEC22/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

Skyscanner/SkyFloatingLabelTextField#88 で議論されているように、バグではないかと。

- (void)prepareForReuse
{
    [super prepareForReuse];
    
    _imageView.image = nil;
}

とする。 http://dev.classmethod.jp/smartphone/ios-10-uicollectionview-pre-fetching/

  • NSDictionaryの中身を全部取り出すとき
    [dictionary keyEnumerator]を使う。
NSDicionary *dictionary = @{@"name":@"John",@"color":@"yellow"};
for (id key in [dictionary keyEnumerator]){NSLog

Xcode-install

install

gem install xcode-install

show avaiable version

$ xcversion list
...
11.2.1 (installed)
11.3 (installed)
11.3 beta (installed)
11.3.1

install xcode

$ xcversion install 11.3.1

show selected version

$ xcversion selected
Xcode 11.3
Build version 11C29

show installed version

$ xcversion installed
11.2.1	(/Applications/Xcode_11.2.1.app)
11.3	(/Applications/Xcode_11.3.app)

select xcode version

# `xcode-select -s`のエイリアス
$ xcversion select 11.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment