一种非常精确的方法,将触控动作从智能手机的触摸屏转移到振动器上。
简单的例子是三星银河上的这个应用程序:EEE3/定制-振动.EEE3
如果你认为它可以盗用,请帮助我了解库和如何做这个应用程序。
发布于 2015-09-16 18:34:18
有可能吗,是的。也许苹果会允许。
如果您的应用程序过度使用振动功能,Apple可能会拒绝它,并要求您降低振动。一般来说,振动只适用于警报。我无法在这个但这是众所周知的上找到官方文档。
#import "ViewController.h"
@import AudioToolbox; // Import AudioToolbox
@interface ViewController ()
@end
@implementation ViewController
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
// Vibrate
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}https://stackoverflow.com/questions/32615956
复制相似问题