Slide 31
Slide 31 text
ʢ$FOUSBMʣஅΠϕϯτͷݕग़
⡥$MBTTNFUIPE
*OD
w அΠϕϯτΛϋϯυϦϯά
w ཧతʹΕͨ߹ʹདྷΔΠϕϯτͰͳ͍ͷͰҙɻ
w ͋͘·Ͱ1FSJQIFSBM͕ʮஅͨ͠ͱΈͳͯ͠ྑ͍ʯঢ়ଶʹͳͬͨ͜ͱΛ௨͠·͢ɻ
func centralManager(
central: CBCentralManager,
didDisconnectPeripheral peripheral: CBPeripheral,
error: NSError?) {
if error != nil {
let controller = UIAlertController(
title: nil,
message: NSLocalizedString(
"The connection to the device closed.",
comment: ""),
preferredStyle: .Alert)
let okAction = UIAlertAction(
title: NSLocalizedString("OK", comment:""),
style: .Default, handler: nil)
controller.addAction(okAction)
self.presentViewController(
controller, animated: true, completion: nil)
}
}
}