[iOS SDK] SSPieProgressView を使ってみた
[IOS] iOS オープンソースライブラリ徹底活用 菊田剛著 秀和システム | DevCafeJp で紹介されていた、SSPieProgressView for iOS – Cocoa Controls を使ってみたのでメモ。
デザインのよい円形のプログレスの表示をしてくれる。
自分の場合はカウントダウンタイマーのかわりとした。
2013/02/16時点での Class Reference はこちら。ARC をサポートしている。
SSPieProgressView Class Reference
使い方は簡単なので紹介するまでも無さそうだけれども参考までにコード片を貼ってみる。
SSPieProgressView *progressView6 = [[SSPieProgressViewalloc] initWithFrame:CGRectMake(170.0f, 95.0f, 130.0f, 130.0f)]; progressView6.progress = 0.66; [self.viewaddSubview:progressView6]; _timer = [NSTimerscheduledTimerWithTimeInterval:0.05 target:self selector:@selector(decrementProgress:) userInfo:nil repeats:YES]; - (void)decrementProgress:(NSTimer *)timer { _progressView7.progress = _progressView7.progress - 0.01; if (_progressView7.progress == 0.0f) { _progressView7.progress = 1.0; } }
Custom UI Controls for iOS and Mac OS X – Cocoa Controlsにはデザインのよい部品が多く登録されており、眺めているだけでも楽しい。
関連記事
-
-
[iOS SDK] Simulator で Save Screenshot するとクラッシュ
「libswiftFoundation.dylib プラグインの使用中に Simulator が予期
-
-
iPad/iPhone 開発本が山のように出るようだ
なんつーかもうすごい状況。もっと出るみたい。 Beginning iP
-
-
Pebble E-Paper Watch のお届け先住所入力ページが用意された
4月にKickstarterで出資した、Pebble E-Paper Watch を作ってい
-
-
Apple Special Event September 2018
今年も新型iPhoneを発表するアップルのスペシャルイベントが2018年9月13日2時AM(12日1
-
-
[iPhone 開発本] iOS SDK Hacks の感想など。
iOS SDK Hacksは発売前から話題になっていて、発売日は10/23だが前日に新宿ジュンク堂に
-
-
2009年10月発売のiPhone SDK関連書籍
10月には Beginning iPhone 3 Developmentの続編とApressが言って
-
-
Apple Developer Program 更新 2020
毎年行うが1年ごとなのでいつも前年の作業を忘れてしまう。 振り返ってみたところ2009年から
-
-
iOSの消音問題(iPadの本体横のスイッチの機能が設定で変更可能なためにさらにややこしいことに)
おんぷちゃん for iPad から音が出ない、というレポートが定期的に日本からも海外からも来るのだ
-
-
Guideline 2.5.10 – Performance – Software Requirements で Reject
2019年3月27日以降、iPhone Xs Maxの画面サイズ6.5インチのスクリーンショットが
-
-
[iPhone SDK] Significant-change Location Service の挙動
iPhoneで位置情報取得を連続して行うと、あっという間に電池が無くなってしまう。これは、位置情報取