请耐心等待,我在互联网上搜索了很多,但由于它是一个新的API,我找不到解决方案.
我正在尝试为iOS 8创建一个自定义键盘.除了在WebView中,它的工作方式非常好!它有前一个 - 下一个按钮,它在inputAccessoryView.我知道它是webview的只读属性,但由于iOS 8允许用户使用自定义键盘,我认为这个视图应该可以在某处编辑.有没有人遇到同样的问题?任何帮助,将不胜感激.
我之前的问题是关于每次登录时都要登录的问题,例如发布链接或上传图片.菲利普回答说我必须为每个请求使用cookie而不是登录过程.我找到了获取cookie的方法:
- (void)getCookies {
NSHTTPURLResponse * response;
NSError * error;
NSMutableURLRequest *request;
request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://MyWebsite.com/login.php"]
cachePolicy:NSURLRequestReloadIgnoringCacheData
timeoutInterval:120];
NSData * data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSLog(@"%@", [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]);
NSArray * all = [NSHTTPCookie cookiesWithResponseHeaderFields:[response allHeaderFields] forURL:[NSURL URLWithString:@"http://MyWebsite.com/login.php"]];
NSLog(@"%d", all.count);
for (NSHTTPCookie *cookie in all) {
NSLog(@"Name: %@ : Value: %@", cookie.name, cookie.value);
NSLog(@"Comment: %@ : CommentURL: %@", cookie.comment, cookie.commentURL);
NSLog(@"Domain: %@ : ExpiresDate: %@", cookie.domain, cookie.expiresDate);
NSLog(@"isHTTPOnly: %c : isSecure: %c", cookie.isHTTPOnly, cookie.isSecure); …Run Code Online (Sandbox Code Playgroud) 我在互联网上搜索了很多,但没有解决方案适合我.我使用Xcode Maven插件创建了一个ipa 它成功构建了我的应用程序并创建了一个ipa但是当我想在testflightapp上传它时它给了我这个错误:
Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?
Run Code Online (Sandbox Code Playgroud)
我在构建设置中添加了配置文件,如下图所示

如果我使用Xcode>产品>存档手动创建ipa,我可以在testflightapp上成功上传ipa.所以我的猜测是Xcode Maven插件无法读取我的配置文件.我尝试通过在pom文件中指定它来强制使用配置文件,如下:
<configuration>
<configurations>
<configuration>Debug</configuration>
<configuration>Release</configuration>
</configurations>
<provisioningProfile>42CB38B0-62BB-4242-BD03-72EDB7570842</provisioningProfile>
</configuration>
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激.