我必须在我的应用程序中提供用户触摸它的链接,它将带我到我的应用程序的itunes Appstore页面,用户可以在该页面对应用程序进行评级.我认为其他应用程序尝试访问设备中的Appstore应用程序并在iTunes中传递相应的应用程序URL ...如何做到这一点?有任何想法吗...
这似乎是一个常见的问题,如果之前被问过,那么道歉.
我试图找出如何防止UITableView完全滚动我的iPhone应用程序.我希望我的桌子垂直锁定,这样任何数量的屏幕滑动都不会导致它移动.
我该如何实现?谢谢.
我想为现有的iOS应用创建一个手表应用.
但我的情况是,我没有苹果手表,而我现有的iOS应用程序只能运行在不在模拟器上的真实设备上.
是否可以在iPhone设备上运行应用程序并在手表模拟器中测试我的手表应用程序?
我想在用户朋友的墙上贴一些东西.
我用它来发布到用户墙
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"a long run", @"name",
@"The Facebook Running app", @"caption",
@"it is fun", @"description",
@"http://itsti.me/", @"href", nil];
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Share on Facebook", @"user_message_prompt",
actionLinksStr, @"action_links",
attachmentStr, @"attachment",nil];
[facebook dialog:@"feed"
andParams:params
andDelegate:self];
Run Code Online (Sandbox Code Playgroud)
但我需要在朋友的墙上张贴.我怎样才能做到这一点
在这篇文章中,他们提到了targetId我是否必须对此做些什么.
我在我的应用程序中实现了InApp Purchase.
这些是我采取的步骤
现在输出是无效的产品ID:com.cmpnyname.appname.feature
你能帮助我解决我的问题吗?
另一个问题是在我的合同/税收/银行合同中处理/ iOS付费应用程序/查看银行信息有红色信息
"注意:正在进行银行更新,您的更改应在24小时内反映出来.在更新完成处理之前,您将无法进行任何更改."
但是我等了48个多小时,但仍然没有.这对我的无效产品ID输出有效吗?
在CI上针对不同版本的iOS模拟器/ SDK运行测试是常见的情况.但是,Xcode默认只安装最新的iOS模拟器.
所以我需要在CI环境中从命令行安装其他缺少的iOS模拟器.但我找不到从命令行安装这些模拟器的方法.
我在地图中渲染了近1000个多边形.我使用了多边形的路径
- (CGPathRef)polyPath:(MKPolygon *)polygon
{
MKMapPoint *points = [polygon points];
NSUInteger pointCount = [polygon pointCount];
NSUInteger i;
if (pointCount < 3)
return NULL;
CGMutablePathRef path = CGPathCreateMutable();
if([polygon isKindOfClass:[MKPolygon class]])
{
for (MKPolygon *interiorPolygon in polygon.interiorPolygons)
{
CGPathRef interiorPath = [self polyPath:interiorPolygon];
CGPathAddPath(path, NULL, interiorPath);
CGPathRelease(interiorPath);
}
}
CGPoint relativePoint = [self pointForMapPoint:points[0]];
CGPathMoveToPoint(path, NULL, relativePoint.x, relativePoint.y);
for (i = 1; i < pointCount; i++)
{
relativePoint = [self pointForMapPoint:points[i]];
CGPathAddLineToPoint(path, NULL, relativePoint.x, relativePoint.y);
}
return path;
}
- (void)drawMapRect:(MKMapRect)mapRect …Run Code Online (Sandbox Code Playgroud) 我在创建正则表达式方面非常弱.所以我在这里
我需要一个满足以下条件的正则表达式.
谢谢
我需要在Documents Directory中保护我的数据,因此我使用了Apple Data Protection API.Apple资产
我使用NSDataProtectionKey编写文件
[data writeToFile:imagePath options:NSDataWritingFileProtectionComplete error:nil];
Run Code Online (Sandbox Code Playgroud)文件已成功写入
我得到了文件属性
[[NSFileManager defaultManager] attributesOfItemAtPath:fullPath
error:NULL];
Run Code Online (Sandbox Code Playgroud)它会返回这样的属性,因为您可以看到NSFileProtectionKey是NSFileProtectionComplete
NSFileCreationDate = "2013-01-22 06:10:48 +0000";
NSFileExtensionHidden = 0;
NSFileGroupOwnerAccountID = 501;
NSFileGroupOwnerAccountName = mobile;
NSFileModificationDate = "2013-01-22 06:10:48 +0000";
NSFileOwnerAccountID = 501;
NSFileOwnerAccountName = mobile;
NSFilePosixPermissions = 420;
NSFileProtectionKey = NSFileProtectionComplete;
NSFileReferenceCount = 1;
NSFileSize = 8964;
NSFileSystemFileNumber = 335997;
NSFileSystemNumber = 16777218;
NSFileType = NSFileTypeRegular;
Run Code Online (Sandbox Code Playgroud)我确信我已成功写入文件并成功读取该文件.但是当我在iExplorer(Mac的外部iOS设备阅读器应用程序)中打开此设备时,它会向我显示未加密的文件.
没有加密意味着我写了一个图像文件.但我能够在iExplorer中查看该图像(在文档目录中).但我的目的是加密它.因为我不希望用户看到这些文件.我知道其他加密AES算法.但是想知道为什么Data Protection API不起作用.
注意:我使用iPad2 …
我需要通过提供Gmail用户名和密码来获取Gmail联系人.任何框架,Api,示例代码..
我知道可以获取gmail聊天联系人的XMPPframework.但我想要来自gmail地址簿的联系人.
任何帮助,将不胜感激..
我在创建正则表达式方面非常弱.所以我在这里
我需要一个满足以下条件的正则表达式.
NSString *nameRegex =@"My RegEx";
NSPredicate *nameTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", nameRegex];
validationResult=[nameTest evaluateWithObject:password];
Run Code Online (Sandbox Code Playgroud)
这些是条件
它应该包含字母和数字
最少7个字符最多32个字符
没有空间
没有符号
请帮忙..