小编sil*_*eep的帖子

在iTunes Store上载构建时发出警告

缺少推荐的图标文件 - 该软件包不包含完全'120x120'像素的iPhone/iPod Touch的应用程序图标,格式为.png.

我正在使用xcode 4.6.3,我正在创建适用于iOS 4.3及更高版本的应用程序,直到iOS 6.1,因为xcode 4.6.3中没有iOS 7的选项.但是iOS 7有像素'120*120'的图标,那么为什么它会显示我的应用程序的警告.

我没有像素图标120*120.有没有办法跳过这个错误.请告诉我解决方案或是否必须添加图标?

iphone icons release itunes ios7

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

IOS应用程序因低内存而被杀死,但未收到内存警告

我有一段时间没遇到问题了,我想知道是否有人可以提供帮助.我正在使用主导航控制器和大量UIImage开发IOS应用程序(iPad).在使用该应用程序一段时间之后,应用程序因低内存而死(不是在特定视图中)但是通过检查iPad日志,我并不总是看到低内存警告(有时候我会这样做,有时候我没有).即使我收到一个,它只是" 收到低内存警告 ",但我从未得到" 1级 "或" 2级 ".

通过使用xCode的泄漏仪器,我找不到任何泄漏.

有人可以帮忙吗?

memory xcode memory-leaks ipad ios

7
推荐指数
2
解决办法
5794
查看次数

圆角矩形,渐变色

我还没有真正用Core Graphics做过多少编程.而且我倾向于坚持使用QuartzCore,因为它通过图层属性做了很多我需要的东西:)

但是,我有一个UIView,它目前是渐变的.我想为这个UIView添加圆角,当我绘制渐变时,layer属性不会这样做:

- (void)drawRect:(CGRect)rect {
    CGContextRef currentContext = UIGraphicsGetCurrentContext();

    CGGradientRef glossGradient;
    CGColorSpaceRef rgbColorspace;
    size_t num_locations = 2;
    CGFloat locations[2] = { 0.0, 1.0 };
    CGFloat components[8] = { 1.0, 1.0, 1.0, 0.95,  // Start color
                            1.0, 1.0, 1.0, 0.60 }; // End color

    rgbColorspace = CGColorSpaceCreateDeviceRGB();
    glossGradient = CGGradientCreateWithColorComponents(rgbColorspace, components, locations, num_locations);

    CGRect currentBounds = self.bounds;
    CGPoint topCenter = CGPointMake(CGRectGetMidX(currentBounds), 0.0f);
    CGPoint midCenter = CGPointMake(CGRectGetMidX(currentBounds), CGRectGetMaxY(currentBounds));
    CGContextDrawLinearGradient(currentContext, glossGradient, topCenter, midCenter, 0);

    CGGradientRelease(glossGradient);
    CGColorSpaceRelease(rgbColorspace);
}
Run Code Online (Sandbox Code Playgroud)

我不确定我应该在drawRect方法中舍入到哪里.谢谢.

iphone gradient core-graphics rounded-corners

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

使用Facebook iOS SDK 3.1.1签入的图谱API

我使用Facebook SDK 3.1.1进行登录以及使用Facebook登记.使用Facebook登录它工作正常,但CheckIn使用图形API会出错.

这是我为checkin @"friends_status",@"user_checkins",@"friends_checkins",@"user_status"提供的所有权限.

这是请求:

[FBRequestConnection startForPostStatusUpdate:message 
                                        place:placeId 
                                         tags:nil 
                            completionHandler:
      ^(FBRequestConnection *connection, id result, NSError *error) {
           NSLog(@"Response....... \n\n %@  %@ %@",connection,result,error);
      }
];
Run Code Online (Sandbox Code Playgroud)

响应:

)>(null)Error Domain = com.facebook.sdk Code = 5"操作无法完成.(com.facebook.sdk error 5.)"UserInfo = 0x808a5a0 {com.facebook.sdk:ParsedJSONResponseKey = {type = mutable dict,count = 2,entries => 1:{contents ="code"} = {value = +403,type = kCFNumberSInt32Type} 2:{contents ="body"} = {type = mutable dict,count = 1 ,entries => 11:{contents ="error"} = {type = mutable dict,count = 3,entries => 2:{contents ="type"} = {contents ="OAuthException"} …

checkin facebook-graph-api facebook-checkins ios6

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

com.sun.net.httpserver的CORS

我正在使用此代码,但Chrome不会向我显示标题,似乎没有添加标题:

Headers headers = httpExchange.getResponseHeaders();
headers.add("Access-Control-Allow-Headers","x-prototype-version,x-requested-with");
headers.add("Access-Control-Allow-Methods","GET,POST");
headers.add("Access-Control-Allow-Origin","*");

httpExchange.sendResponseHeaders(responseCode, responseBody.length());
OutputStream os = httpExchange.getResponseBody();
os.write(responseBody.getBytes());
os.close();
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

java httpserver cors

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

在从Edit Scheme设置iOS模拟器默认位置时,它是否会影响设备位置更新?

由于我收到错误"位置管理器错误:(KCLErrorDomain错误0)"我编辑该方案以设置默认位置.即Scheme>编辑方案>选项>允许位置模拟选中设置默认位置.

是否会影响设备从GPS获取其位置?

cllocationmanager ios6 xcode4.5

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

IOS指纹实现

由于Apple发布了在iOS 7中具有FingerPrint扫描功能的Xcode 5,我们可以在我们的应用程序中实现这一点吗?如果是,我们使用哪个SDK进行实施.

请提供示例代码或指定我们使用的SDK.

fingerprint ios ios7 xcode5

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

自定义@ font-face不加载chrome(Chrome自定义字体无法渲染)

自定义@font-face不加载chrome(chrome自定义字体无法渲染)使用CSS自定义字体

@font-face {
    font-family:'gotham-rounded-medium';
    src:url('fonts/gothumrounded_medium/gotham-rounded-medium.eot');
    src:url('fonts/gothumrounded_medium/gotham-rounded-medium.eot?#iefix')format("embedded-opentype"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.woff')format("woff"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.ttf')format("truetype"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.svg')format("svg");
    font-weight:400;
    font-style:normal
}

.custom_font{
   font-family:'gotham-rounded-medium', arial, sans-serif;
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

仅在调整屏幕窗口大小时才会显示文本.

那么请问有什么可以解决这个问题吗?

html5 fonts google-chrome css3 font-face

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

连接到10.0.2.2而不是localhost的React-native android调试器

在运行app时react-native run-android连接到10.0.2.2:8081而不是localhost:8081并且无法调试.

有谁知道如何修复,以便它将连接到localhost而不是?

android-emulator react-native react-native-android react-native-debugger

5
推荐指数
2
解决办法
5467
查看次数

有没有一种方法可以在Activiti流程定义中获取任务而不创建流程实例?

我必须使用项目服务公开Activiti API流程。

我的要求如下

在运行流程之前,我想使用Java了解有关Activiti流程定义中的任务的详细信息。在创建Activiti ProcessInstance之前。有什么办法可以做到这一点?

我已经遍历了Activiti API的Java文档和用户指南,但找不到方法。

任何帮助将不胜感激,谢谢。

java activiti

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