我正在开发iOS8 App Extension(照片编辑扩展)
我尝试过这些方法来更新导航栏颜色,但是失败了:
[[UINavigationBar appearance] setBarTintColor:[UIColor yellowColor]];
[[UINavigationBar appearance] setTintColor:[UIColor blueColor]];
[[UINavigationBar appearance] setBackgroundColor:[UIColor blueColor]];
Run Code Online (Sandbox Code Playgroud)
它显示默认的半透明灰色导航栏.

有没有人知道如何更改iOS8扩展中的导航栏颜色?
用户表
ID | name
1 | ada
2 | bob
3 | tom
Run Code Online (Sandbox Code Playgroud)
组表
ID | name
1 | group A
2 | group B
3 | group C
Run Code Online (Sandbox Code Playgroud)
user_group表
user_id | group_id
1 | 1
2 | 1
1 | 2
2 | 2
3 | 2
1 | 3
3 | 3
Run Code Online (Sandbox Code Playgroud)
给定用户ID组:[1,2,3]
如何查询上面列表中所有用户所属的组?(在这种情况下:B组)