小编Har*_*rin的帖子

在objective-c iPhone中的文本到语音

我正在开发一个应用程序,我必须在其中播放字符串作为音频.

我正在使用http://translate.google.com/translate_tts?tl=en&q=Hello API来说出字符串,但它有点慢.

在objective-c中是否有任何库可以将字符串作为音频"Text To Speech"播放.

iphone text speech objective-c text-to-speech

6
推荐指数
2
解决办法
9765
查看次数

由于"无法在捆绑中加载NIB"导致崩溃

在我的应用程序中有一个PointMode按钮.当我点击它10到11次时没有问题,视图将出现.但之后,它产生了这个错误:

由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'无法在bundle中加载NIB:'NSBundle <Simulator/4.1/Applications/04DF6214-383F-43DA-B2D2-C5B538B0095B/PW.app>(已加载)'具有名称' PWPointMode ''

我称之为这样的观点.

PWPointMode *pointController = [[PWPointMode alloc]initWithNibName:@"PWPointMode" bundle:nil];
    self.objPointMode = pointController;
    [self.navigationController pushViewController:objPointMode animated:YES];
    [pointController release];
Run Code Online (Sandbox Code Playgroud)

我的应用程序是通用的应用

iphone xcode iphone-sdk-4.1

5
推荐指数
1
解决办法
1060
查看次数

Helpmenu在申请中

我最近完成了我的应用程序,现在我想创建一个用户指南(针对每个标签)这个应用程序解释了一些部分,并且在应用程序运行时将首先出现3到4次.之后,当用户使用此应用程序时,指南将不会显示.有关详细信息,他们必须在我的应用程序中找到帮助选项卡.

因此,当应用程序运行时,是否可以显示前3或4次的帮助菜单?如果有可能,那么有人可以给我一些参考或解决方案.

iphone objective-c ipad ios

5
推荐指数
1
解决办法
59
查看次数

Facebook在Friend Wall Post期间返回com.facebook.sdk错误5

在我的应用程序中我使用Facebook sdk 3.1并使用它我尝试做墙贴.使用此代码片段,我可以在Friend Wall和我自己的墙上成功发布图像和消息.我只需更改我/照片friendId /照片.

-(IBAction)postPhoto:(id)sender
{
    UIImage *image=[UIImage imageNamed:@"baby.jpg"];
    NSArray *frndArray=[[NSArray alloc] initWithObjects:@"Friend ID", nil];
    [self postImageOnFriendsWall:image FriendsArray:frndArray];
}

-(void)postImageOnFriendsWall:(UIImage*)image FriendsArray:(NSArray*)friends
{
    AppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];


    // if we don't have permission to announce, let's first address that
    if ([appDelegate.session.permissions  indexOfObject:@"publish_actions"] == NSNotFound)
    {

        NSArray *permissions =[NSArray arrayWithObjects:@"publish_actions",@"publish_stream",@"manage_friendlists", nil];

        [FBSession setActiveSession:appDelegate.session];

        [[FBSession activeSession] reauthorizeWithPublishPermissions:permissions defaultAudience:FBSessionDefaultAudienceFriends completionHandler:^(FBSession *session, NSError *error)
         {
             if (!error)
             {
                 // have the permission
                 [self postImageOnFriendsWall:image FriendsArray:friends];
             }
             else
             {
                 UIAlertView …
Run Code Online (Sandbox Code Playgroud)

iphone facebook facebook-graph-api ios

1
推荐指数
1
解决办法
4188
查看次数