我正在开发一个应用程序,我必须在其中播放字符串作为音频.
我正在使用http://translate.google.com/translate_tts?tl=en&q=Hello API来说出字符串,但它有点慢.
在objective-c中是否有任何库可以将字符串作为音频"Text To Speech"播放.
在我的应用程序中有一个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)
我的应用程序是通用的应用
我最近完成了我的应用程序,现在我想创建一个用户指南(针对每个标签)这个应用程序解释了一些部分,并且在应用程序运行时将首先出现3到4次.之后,当用户使用此应用程序时,指南将不会显示.有关详细信息,他们必须在我的应用程序中找到帮助选项卡.
因此,当应用程序运行时,是否可以显示前3或4次的帮助菜单?如果有可能,那么有人可以给我一些参考或解决方案.
在我的应用程序中我使用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)