2017-01-01から1年間の記事一覧
Navigation Barを透明にする override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(true) //ナビゲーションを透明にする self.navigationController!.navigationBar.setBackgroundImage(UIImage(), for: .default) self.navigationContro…
[問題文] Find longest sequence of zeros in binary representation of an integer. [考えたアルゴリズム] 配列A,B,Cを用意する 与えられた数値Nを二進数に変換する 変換した数値を文字として扱い、1文字ずつ区切り配列Aに追加する For Loop(文字列"0"と"1"…
var binaryNumStr = String(N,radix: 2)
AlamofireImageとは github.com AlamofireImage is an image component library for Alamofire. 1.CocoaPods source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' use_frameworks! target '<Your Target Name>' do pod 'AlamofireImage', '~> 3.3' end 2.P</your>…
ユーザープロフィールなどで正円を作りたいとき UIImageViewのサブクラスを作る 作成したクラス内で以下のコードを書く override func layoutSubviews() { super.layoutSubviews() layer.cornerRadius = self.frame.width / 2 }
Blenderの基本コマンド オブジェクトの追加 Shift + A このように色々な選択肢があります。。 オブジェクトの移動(G) オブジェクトのスケール(S) オブジェクトの回転(R)
5種類のアクセス制御 open(モジュールの情報を取得すればどこからでもアクセスできる) public(基本openと同じ。異なるのは、サブクラスの作成、上書きの定義がそのクラスを定義したモジュール内のみで可能という点。) internal(何も指定していない場合のデフ…
Blenderとは Blenderとは3DCG開発のためのソフトウェアです。誰でも無料で全ての機能を利用できます。 www.blender.org 公式サイトによると、 Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modelin…