有没有人为iOS的Nuance Dragon移动语音SDK创build了一个MonoTouch绑定?

我有在Windows Phone 7上运行良好的龙移动SDK,我想获得适用于iOS的等效function。 由于SDK包装了麦克风,因此在我的MonoTouch项目中使用.NET程序集是不太可能的(即使我有源码)。 看来最好的办法是创build一个绑定库(如Miguel 在这里所描述的)。 它确实看起来像很多工作,但我很乐意重用,而不是重新发明轮子,如果有人已经做到了这一点… …

在这种情况下,mapView:viewForAnnotation:将被调用?

现在我想在我的iOS应用程序的地图上添加一个静态的引脚注释。 但我只想知道是否将调用委托方法mapView:viewForAnnotation:。 在苹果文档中,据说 When it needs an annotation view, the map view calls the mapView:viewForAnnotation: method of its delegate object. 我从互联网上阅读了几个教程,并从苹果官方文档中看到了这些教程 而且我还是不会在这个方法被调用的时候。

如何检测哪个第三sdk使用UDID?

我们使用了很多来自广告提供商的第三方软件开发工具包,而且由于苹果在5月1日之后将不允许UDID访问,所以我想检查哪些SDK使用了UDIDfunction。 有没有简单的方法或工具来做到这一点?

使用播放它的相同button停止声音

很简单,我使用一个button,产生一个随机数字,然后与开关/情况下,它animation图像和播放声音。 我的问题是,当你再次按下button时,以前播放的声音不会停止,声音重叠。 代码如下: – (IBAction) pushme: (id) sender{ int random = (arc4random()%10); switch (random) { case 0: { [ANIMATION NUMBER 0] NSString *path = [NSString stringWithFormat:@"%@%@",[[NSBundle mainBundle] resourcePath],@"/sound0.wav"]; SystemSoundID soundID; NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO]; AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID); AudioServicesPlaySystemSound(soundID); } break; case 1: { [ANIMATION NUMBER 1] NSString *path = [NSString stringWithFormat:@"%@%@",[[NSBundle mainBundle] resourcePath],@"/sound1.wav"]; SystemSoundID […]

如何在iOS应用中使用自定义字体?

可能重复: 我可以在iPhone应用程序中embedded自定义字体吗? 嗨,我想在我的本地iOS应用程序中使用缅甸字体。 但是,我不知道如何使用该字体。 字体名称是Zawgyi.ttf,它是缅甸的字体。 我已经在我的MacBook中安装了该字体,我没有在我的Xcode项目的字体属性中find该字体。 我只是iOS的初学者。 请指导我如何做到这一点? 感谢您的阅读。

iOS Facebook SDK本地化

我正在尝试更改FBLoginViewbutton中的文本,但到目前为止我还没有运气。 我试着从FacebookSDK阅读README并看看互联网。 我在项目本地化添加了2种语言部分,它创build了2个文件在每种语言的支持文件,但我试图改变那里的README (改变string值)的示例内容中的string,但即使我改变了英文文件,我总是得到默认loginstring。 然后,我尝试添加一些Bundle设置,并在那里更改一些文件,但没有运气。 有人能告诉我怎样才能实现改变Facebook的string一步一步? 谢谢

为什么NSMutableDictionary不想写入文件?

– (void)viewDidLoad { [super viewDidLoad]; if ([[NSFileManager defaultManager] fileExistsAtPath:pathString]) { infoDict = [[NSMutableDictionary alloc] initWithContentsOfFile:pathString]; } else { infoDict = [[NSMutableDictionary alloc]initWithObjects:[NSArray arrayWithObjects:@"BeginFrame",@"EndFrame", nil] forKeys:[NSArray arrayWithObjects:[NSNumber numberWithBool:YES],[NSNumber numberWithBool:YES], nil]]; if ([infoDict writeToFile:pathString atomically:YES]) { NSLog(@"Created"); } else { NSLog(@"Is not created"); NSLog(@"Path %@",pathString); } } 这是我的代码。 我检查是否创build文件,如果没有 – 我创build一个NSMutableDictionary并将其写入文件的path,但writeToFile方法返回NO 。 问题在哪里? 如果我使用NSFileManager创build这个文件,它可以工作,但是当我想写一个字典时不会。

iOS – 未收到UIEventTypeRemoteControl事件

我有这个在AppDelegate(didFinishLaunching): [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; 我试图在相关的视图控制器中处理这些事件,但是这是有缺陷的(一些视图控制器会得到事件,而其他视图控制器不会,即使他们是第一响应者)。 我试过UIApplication的子类。 这没有用。 现在我正在尝试子类UIWindow并执行此操作(请参阅注释): – (void)sendEvent:(UIEvent *)event { if (event.type == UIEventTypeRemoteControl) { NSLog(@"I wish this happened"); //this never happens } else { NSLog(@"some other event"); //this does happen on any other interaction [super sendEvent:event]; } } – (void) remoteControlReceivedWithEvent: (UIEvent *) receivedEvent { if (receivedEvent.type == UIEventTypeRemoteControl) { NSLog(@"got remote […]

CKFetchNotificationChangesOperation返回旧的通知

我正在使用一个基于CloudKit的应用程序,它使用CKSubscription通知来跟踪对公共数据库的更改。 每当应用程序收到一个推送通知,我检查CKFetchNotificationChangesOperation通知队列,并标记处理后读取每个通知: __block NSMutableArray *notificationIds = [NSMutableArray new]; CKFetchNotificationChangesOperation *operation = [[CKFetchNotificationChangesOperation alloc] initWithPreviousServerChangeToken:self.serverChangeToken]; operation.notificationChangedBlock = ^(CKNotification *notification) { [notificationIds addObject:notification.notificationID]; [self processRemoteNotification:notification withCompletionHandler:completionHandler]; }; __weak CKFetchNotificationChangesOperation *operationLocal = operation; operation.fetchNotificationChangesCompletionBlock = ^(CKServerChangeToken *serverChangeToken, NSError *operationError) { if (operationError) { NSLog(@"Unable to fetch queued notifications: %@", operationError); } else { self.serverChangeToken = serverChangeToken; completionHandler(UIBackgroundFetchResultNewData); // […]

快速从封闭中获取数据

我已经做了一个查询parsing并获取一个GeoPoint坐标数组。 这是在closures内完成的。 我只能访问该闭包内的数组值。 我需要能够使用这些值,以便他们可以用作地图上的注释,但我不能去他们。 有人可以告诉我如何从闭包中获取数组值。 码: var user = PFUser.currentUser() user["location"] = geopoint var query = PFUser.query() query.whereKey("location", nearGeoPoint:geopoint) query.limit = 10 query.findObjectsInBackgroundWithBlock({ (objects: [AnyObject]!, error: NSError!) -> Void in for object in objects { var user:PFUser = object as PFUser var otherUsersCoord = [PFGeoPoint]() otherUsersCoord.append(user["location"] as PFGeoPoint) println("The other users coords are: \(otherUsersCoord)") } […]