小编Fel*_*ira的帖子

ios7 - 自定义UItabbar底部有一个空白

我试图使用图像为选定和未选择状态创建自定义UITabbar.

这是我的代码:

if ([UIImage instancesRespondToSelector:@selector(imageWithRenderingMode:)]) {

    tab_01_on_image = [[UIImage imageNamed:@"Tabbar_on_01"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    tab_01_off_image = [[UIImage imageNamed:@"Tabbar_off_01"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

} else {
    tab_01_on_image = [UIImage imageNamed:@"Tabbar_on_01"] ;
    tab_01_off_image = [UIImage imageNamed:N@"Tabbar_off_01"] ;

}

[[[self.tabBarController.tabBar items] objectAtIndex:index] setFinishedSelectedImage:tab_01_on_image withFinishedUnselectedImage:tab_01_off_image];
Run Code Online (Sandbox Code Playgroud)

此图显示问题,红色是差距:

在此输入图像描述

编辑添加代码以创建UITabbar

self.tabBarController = [[BaseTabbarController alloc] init];
self.tabBarController.delegate = self;
self.tabBarController.viewControllers = @[navControll1, navControll2, navControll3, navControll4, navControll5];
self.window.rootViewController = self.tabBarController;
Run Code Online (Sandbox Code Playgroud)

我感谢你们提供的任何帮助

iphone uitabbarcontroller uitabbar ios ios7

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

如何在AWS Codepipeline中运行shell脚本?

我在 Github 上托管了一个 PHP 项目,我尝试使用 AWS Codepipeline 和 ElasticBeanstalk 设置持续集成。

到目前为止,我能够从 github 获取存储库内容并将其部署到 ElasticBeanstalk。但我需要在部署之前运行 shell 脚本,该脚本将更新 config.json 文件并更新环境变量。

这就是我试图在管道中实现的目标:

  1. 从Github获取项目文件(完成)
  2. 运行 shell 脚本来更新项目中的 config.json 文件
  3. 运行将在 ElasticBeanstalk 中设置环境变量的 shell 脚本
  4. 部署到 ElasticBeanstalk(完成)

我有什么想法可以让它发挥作用吗?

谢谢

shell amazon-web-services amazon-elastic-beanstalk aws-code-deploy aws-codepipeline

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

使用API​​时,Firebase API不会发送推送通知

我正在从Parse迁移到Firebase并遇到我们的ios应用程序的问题.Firebase API不会向ios应用发送推送通知.这就是我发送到https://fcm.googleapis.com/fcm/send的内容

{ 
 "to: "<registration token>",
 "priority": "high",
 "data": {
     "customId": "<my custom id>",
     "badge": 1,
     "sound": "cheering.caf",
    "alert": "New data is available"
  }
}
Run Code Online (Sandbox Code Playgroud)

服务器正在恢复成功

{
    "multicast_id":6917019914327105115,
    "success":1,
    "failure":0,
    "canonical_ids":0,
    "results":[{"message_id":"0:1468961966677585%f0f84693f9fd7ecd"}]
}
Run Code Online (Sandbox Code Playgroud)

但推动没有实现.如果我使用Firebase控制台发送推送,即使我直接使用令牌定位,也会推送推送.

我看到另一个开发人员抱怨另一个Stackoverflow问题 无法使用服务器API发送推送通知

我尝试了添加"优先级"的解决方案:"高",它没有解决问题.但它给了我一个线索:他们也在使用dev/sandbox推送证书.

我怀疑仪表板可以使用ios开发证书,但API不能.问题只发生在ios设备上,因为Android应用程序正在通过API推送.

是否有人能够使用API​​和开发证书发送推送?

push-notification ios firebase firebase-cloud-messaging

4
推荐指数
2
解决办法
3935
查看次数

iOS Universal Links only works for one path

I followed the instructions to implement the Universal Links in our ios app. Our requirement is to have 3 Links/Paths that would open in the app. Everything looks correct and match the documentation, the problem is that only the first path opens the app, the others do not work at all.

Using the Universal Links Validation Tool from Apple I can see that the link that is working pass the Universal Links validation but the links that are not working …

ios ios-universal-links

4
推荐指数
2
解决办法
1598
查看次数