Skip to content

Instantly share code, notes, and snippets.

@tokorom
Created September 15, 2014 18:21
Show Gist options
  • Save tokorom/c5eb5a33887d41fac804 to your computer and use it in GitHub Desktop.
Save tokorom/c5eb5a33887d41fac804 to your computer and use it in GitHub Desktop.
[Swift] memo

http://www.muukii.me/blog/daily/815

こういう見えないクラスとの一致をSwiftでやる方法。

if "_UINavigationBarBackground" == NSStringFromClass(view.dynamicType) {

dynamicType & NSStringFromClass で文字列比較。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment