iPhone振动
来源:互联网 发布:迅雷 2.7.5 mac 编辑:程序博客网 时间:2024/04/29 00:19
iPhone振动
只需要一句代码。
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
创建与服务器的输入输出流
- (void)GetStreamsToHost:(NSString *)aHost Port:(NSInteger)aPort InputStream:(NSInputStream **)aInputStream OutputStream:(NSOutputStream **)aOutputStream
{
CFReadStreamRef bRead;
CFWriteStreamRef bWrite;
bRead = NULL;
bWrite = NULL;
CFStreamCreatePairWithSocketToHost(NULL, (CFStringRef)aHost, aPort,
((aInputStream != nil) ? &bRead : NULL),
((aOutputStream != nil) ? &bWrite : NULL));
if (aInputStream != NULL) {
*aInputStream = [NSMakeCollectable(bRead) autorelease];
}
if (aOutputStream!= NULL) {
*aOutputStream = [NSMakeCollectable(bWrite) autorelease];
}
}
{
CFReadStreamRef bRead;
CFWriteStreamRef bWrite;
bRead = NULL;
bWrite = NULL;
CFStreamCreatePairWithSocketToHost(NULL, (CFStringRef)aHost, aPort,
((aInputStream != nil) ? &bRead : NULL),
((aOutputStream != nil) ? &bWrite : NULL));
if (aInputStream != NULL) {
*aInputStream = [NSMakeCollectable(bRead) autorelease];
}
if (aOutputStream!= NULL) {
*aOutputStream = [NSMakeCollectable(bWrite) autorelease];
}
}
- iPhone振动
- iphone开发之触发振动和获取用户电话号码
- iphone开发之触发振动和获取用户电话号码
- 预告:按不动的 iPhone Home键和了不起的“振动” | 硬创公开课
- 振动窗口
- mobile振动
- 振动检测
- 振动Vibrator
- 调用振动
- 弦振动
- 晶格振动
- Android 振动
- 悬臂梁振动
- 振动盘
- 振动传感器
- cordova 振动
- 轴振动和轴承振动的区别
- 振动论坛---MATLAB
- POJ 1470 LCA问题,一次AC的,很鸡冻!
- 开发 Windows Mobile 应用程序: FAQ
- 银戒
- .... 我爱记笔记
- iPhone Cocoa Touch 图标
- iPhone振动
- 可重用代码的艺术
- 如何成为一名专家级的开发人员
- 如何创建 PocketPC 全屏应用程序
- 因为是他们负责的
- 爱你就像一场梦,而我刚刚醒来
- Java程序中,表示“数值” 以及 指数表示法
- 让你不再害怕指针
- WM平台旋转屏幕的编程实现