小编Sea*_*ean的帖子

使iPhone特定的应用程序在iPad上运行,以满足Apple的要求

我的应用程序已经在AppStore中运行了几个月,并且始终只在iPhone上运行.我最近提交了一个被拒绝的更新,因为该应用程序无法在iPad上运行.被拒绝的确切原因是:

拒绝原因:2.10:iPhone应用程序也必须在iPad上运行,无需修改,iPhone分辨率和2X iPhone 3GS分辨率

我需要在Xcode中做什么才能让我的应用程序在带有2X图标的小盒子中的iPad上运行?

任何提示说明都将受到大力赞赏......

编辑 这是我的info.plist.这是我的第一个应用程序,我认为我最初选择选择"通用"进行设置.现在有一个简单的方法让我纠正这个问题吗?

PLIST内容......

iphone xcode app-store appstore-approval ios

11
推荐指数
2
解决办法
1万
查看次数

使用TPKeyboardAvoidingScrollView无法正常移动键盘的文本字段

我有一个TabBar应用程序,其中一个选项卡嵌入在NavigationController中.此特定视图是一个包含文本字段的表单.我想让TPKeyboardAvoidingScrollView在键盘进入视图时向上移动UITextFields.我已按照Github页面上的说明进行操作,但它根本不起作用.

这是我按照说明做的:

  1. 将TPKeyboardAvoidingScrollView.h和.m添加到我的项目中
  2. 在故事板上的视图中添加了UIScrollView(Xcode 4.3.1)
  3. 选中ScrollView并在检查器中将其类更改为TPKeyboardAvoidingScrollView
  4. 将所有文本字段移动到UIScrollView中

这不起作用......所以看一下示例代码,我尝试添加一些东西:

  1. 在我的视图控制器.h文件中我添加了:

    @class TPKeyboardAvoidingScrollView;

  2. 并链接ScrollView导致添加这行代码:

    @property(弱,非原子)IBOutlet TPKeyboardAvoidingScrollView*scrollView;

  3. 将TPKeyboardAvoidingScrollView.h导入到我的控制器.m文件中.

但是,其他人似乎赞不绝口的代码对我来说并不适用.

任何人都可以指出我的无能吗?在此先感谢您提供的任何帮助......

iphone objective-c uiscrollview

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

更改Core Plot饼图标题的外观

我想在我使用Core Plot生成的饼图中使用纯黑色背景.我有很好的图表渲染,但标题是默认的blackColor,很难在黑色背景上看到.我知道它正在显示,因为当我改变主题时,我可以看到它是黑色的.任何人都可以像我对数据标签那样告诉我如何更改文本颜色?

这是我的代码片段......

    graph = [[CPTXYGraph alloc] initWithFrame:self.view.bounds];
    CPTGraphHostingView *hostingView = (CPTGraphHostingView*)self.view;
    hostingView.hostedGraph = graph;

    CPTPieChart *pieChart = [[CPTPieChart alloc] init];
    pieChart.dataSource = self;
    pieChart.pieRadius = 80.0;
    pieChart.identifier = @"PieChart1";
    pieChart.startAngle = M_PI_4;
    pieChart.sliceDirection = CPTPieDirectionCounterClockwise;

    [graph addPlot:pieChart];
    graph.title = @"Proportion of Sessions per Sport";

}

-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index {
    static CPTMutableTextStyle *whiteText = nil;
    if (!whiteText) {
        whiteText = [[CPTMutableTextStyle alloc] init];
        whiteText.color = [CPTColor whiteColor];
    }

    CPTLayer *layer = [[CPTLayer alloc] initWithFrame:CGRectMake(50, 50, 100, 20)];
    CPTTextLayer *newLayer …
Run Code Online (Sandbox Code Playgroud)

iphone charts graph ios pie-chart

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