本身工作上喜愛iOS平台且最近沈溺於Switch,
因此也開發了app並想分享給大家,
Will 發表在 痞客邦 留言(0) 人氣(754)
近日開發之新產品, 可透過iphone裝置之運算能力,
Will 發表在 痞客邦 留言(1) 人氣(2,738)
[iAPP] Electronic Music Radio - (EDM) - 電子音樂廣播電台
Will 發表在 痞客邦 留言(0) 人氣(200)
[iAPP] Music Addict Radio - 全曲風音樂廣播電台
Will 發表在 痞客邦 留言(0) 人氣(58)
Will 發表在 痞客邦 留言(0) 人氣(94)
推出最新樂器調音器, 準度百分百搭配友善且簡易的UI界面
還請大家多多支持與下載
Will 發表在 痞客邦 留言(0) 人氣(11,456)
最近與朋友組了團隊一起開發app, 顯然我們不是走殺手級應用,
隨著生活激發些創意開發點小app為我們目前的宗旨,
於是這隻FlashSticker就這樣誕生了,
而我們小團隊的網址如下, 若有意見回饋我們將會非常開心且感激的。
Will 發表在 痞客邦 留言(0) 人氣(82)
作者第一隻音樂輔助app已在AppStore上架囉,
希望大家能夠留言或個評分替作者打打氣,
若有建議也歡迎留言給作者,讓我能繼續改進此程式提高用戶體驗。
下載位址如下:
https://itunes.apple.com/tw/app/tiktok-metronome/i...
--
My first app is now available on AppStore,
If you have any suggestion on my app,
Please write your comment to me that make me improve this app,
or give me rating on AppStore. Thank you for any comment in advance.
download this app as below:
https://itunes.apple.com/us/app/tiktok-metronome/i...
Will 發表在 痞客邦 留言(0) 人氣(761)
此篇文播放影片之範例程式, 在storyBoard須先行設定一Button
並與AVPlayerViewController建立關聯性, 並選擇Kind為Present Modaily
程式碼如下:
Will 發表在 痞客邦 留言(0) 人氣(968)
此專案為播放音樂之程式, 使用一個label顯示歌曲長度, slider可調整歌曲進度, 最後點擊Btn播放音樂以及停止
import UIKit
import AVFoundation
class ViewController: UIViewController {
@IBOutlet weak var playMusicButtom: UIButton!
@IBOutlet weak var mySlider: UISlider!
@IBOutlet weak var progressTimeLabel: UILabel!
var myPlayer = AVAudioPlayer()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let filePath = NSBundle.mainBundle().pathForResource("ur music in project", ofType: "mp3")
do
{
myPlayer = try AVAudioPlayer(contentsOfURL: NSURL(fileURLWithPath: filePath!))
try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryAmbient)
try AVAudioSession.sharedInstance().setActive(true)
}
catch
{
print("error")
}
NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: #selector(self.playingProgress), userInfo: nil, repeats: true) //每秒更新slider
mySlider.maximumValue = Float(myPlayer.duration) //取得歌曲總長度
}
func playingProgress() //顯示歌曲長度
{
progressTimeLabel.text = String(format: "%.0f/%.0f", myPlayer.currentTime, myPlayer.duration)
mySlider.value = Float(myPlayer.currentTime)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func playMusicButtom(sender: AnyObject) //檢查playBtn之狀態
{
if myPlayer.playing == false
{
myPlayer.play()
playMusicButtom.setTitle("pause", forState: .Normal)
}else{
myPlayer.pause()
playMusicButtom.setTitle("play", forState: .Normal)
}
}
@IBAction func mySlider(sender: AnyObject) //調整slider移動歌曲進度
{
myPlayer.currentTime = Double(mySlider.value)
}
}
Will 發表在 痞客邦 留言(0) 人氣(476)