[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にはデザインのよい部品が多く登録されており、眺めているだけでも楽しい。
関連記事
-
[iPhone SDK] Apple Push Notification を利用したアプリをサポートする Easy APNS
以前 apns-php を使ってApple Push Notification を実行する話を書いた
-
Roland 電子ドラム TD-4KP 落札
(2016年2月の記事)ドラム譜学習アプリを作るためには自分も叩けないと困るだろう、ということでMI
-
iPhone OS 3.0 GM Seed vs Final version
iPhone OS 3.0 が6月18日(木)より公開されているが、自分はiPhone Develo
-
Apple Developer Program 更新 2020
毎年行うが1年ごとなのでいつも前年の作業を忘れてしまう。 振り返ってみたところ2009年から
-
自作アプリを売り買いできる Apptopia
Apptopia というところからメールが来たので調べてみたところ、どうやらAndroid
-
iPad, iPhone, Mac, PC で使える Line6 Mobile Keys
今年のCESで発表されて以来ずっと待っていたLine6のMobile Keysがついに発売される。こ
-
iPhone開発のネタ帳: UIPopoverController に UIPickerView をいれる
iPad から追加された部品の一つに、UIPopoverController がある。 iPadが
-
App Bundle は公開後は追加・削除できない
App Storeには App Bundleという仕組みがあり、複数のアプリをまとめてお得な値段で
-
iPhoneゲーム開発ワークショップ 翔泳社 PJ Cabrera
以前紹介した、iPhone Games Projects の翻訳本「iPhoneゲーム開発ワークショ
-
Apple Developer Program 更新2016
そろそろ期限が切れるので、Apple Developer Program - Apple Devel