예, 이것은 과거 AppStore 거부를 야기한 것으로, 아마도 다시 ... 즉, 여전히 가능합니다.
내 자신의 질문에 대답, 그 방법은 다음과 같습니다 빌드 단계에서
추가 프레임 워크 CoreTelephony.
선언
extern void * _CTServerConnectionCreate(CFAllocatorRef, int (*)(void *, CFStringRef, CFDictionaryRef, void *), int *);
extern int _CTServerConnectionSetVibratorState(int *, void *, int, int, float, float, float);
static void* connection = nil;
static int x = 0;
초기화 :
connection = _CTServerConnectionCreate(kCFAllocatorDefault, &vibratecallback, &x);
시작 진동 :
_CTServerConnectionSetVibratorState(&x, connection, 3, intensity, 0, 0, 0);
정지 진동 :
_CTServerConnectionSetVibratorState(&x, connection, 0, 0, 0, 0, 0);
이 코드는 입력 할 때 전화기를 윙윙 거리는 다운로드 가능한 응용 프로그램 인 HapticKeyboard에 있습니다. Cydia의 jailbroken 전화에서 사용할 수 있습니다. 도 참조 my jailbreaking experience)
다른 좋은 참조?
개인적인 방법을 사용하기 때문에 앱을 거부하게됩니다. – pop850