我正在开发一个企业应用程序.当我在iOS8测试版中测试时,我看到了以下警报视图:
Untrusted App Developer
Do you trust the developer "iPhone Distribution: ---" to run apps on you iPad?
Run Code Online (Sandbox Code Playgroud)
它只是第一次出现.我可以以某种方式避免它吗?它与什么有关?
我有一个有趣的问题.可以在iOS应用中播放iTunes音乐商店中的音乐预览吗?怎么做?我需要你的帮助.
我向导航控制器添加自定义按钮
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"back.png"] style:UIBarButtonItemStylePlain target:self action:@selector(backAction)]; self.navigationItem.leftBarButtonItem = backButton;
它工作正常,但按钮出现边框.我该如何解决这个问题?
更新 我找到了解决方案
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)]; [button setImage:[UIImage imageNamed:@"back.png"] forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonFavoriteClicked) forControlEvents:UIControlEventTouchUpInside]; UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithCustomView:button]; [button release];
self.navigationItem.leftBarButtonItem = back;
Run Code Online (Sandbox Code Playgroud) 我有两个UIButtons(我使用IB创建它们),它使用相同的IBAction连接到File的所有者,我如何定义哪些被按下?
我有一个大的NSArray名称,我需要从该数组中随机获得4条记录(名称),我该怎么做?
我发现了有趣的问题.
当我请求新的发布权限时,fb sdk会显示"跳过"按钮的对话框.我这样处理它
[[[appDelegate facebook] session] requestNewPublishPermissions:permissions
defaultAudience:FBSessionDefaultAudienceEveryone
completionHandler:^(FBSession *session, NSError *error)
{
if (!error)
{
//do smth if there is no error
}
}];
Run Code Online (Sandbox Code Playgroud)
但是当用户在对话框中按下"跳过"时 - 错误是零.
怎么处理?也许我不懂smth.谢谢.
我有标准的UIBarButtonItem
UIBarButtonItem *share = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share:)];
如何将她添加到UIToolBar?我试过了
self.toolbarItems = [NSArray arrayWithObject:share];
但它不起作用.需要你的帮助.
可以更改UINavigationController视图和按钮的颜色吗?
我正在尝试将“Custom.framework”添加到我的 pod(cocoapods)。而且我对 pod 规格设置有些困惑。我做了以下工作:
s.resources = ['Resources/Custom.framework']
s.preserve_paths = "Resources/Custom.framework"
s.frameworks = "UIKit", "Custom"
Run Code Online (Sandbox Code Playgroud)
但是在我使用这个吊舱的项目中,我收到了错误
<Custom/Custom.h> not found
Run Code Online (Sandbox Code Playgroud)
或类似的东西。
我已经被困了几个小时,我无法在谷歌中找到我的问题的答案。
BR,帕夫洛。
我在代码UINavigationController中创建,但我想将样式更改为黑色半透明
FirstViewController *fvc = [[FirstViewControlelr alloc] init];
UINavigationController *navcon = [[UINavigationController alloc] init];
navcon.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
[navcon pushViewController:fvc animated:NO];
[self.window addSubview:navcon.view];
[self.window makeKeyAndVisible];
return YES;
Run Code Online (Sandbox Code Playgroud)
但他并没有改变.请帮帮我!
ios ×10
objective-c ×7
xcode ×5
cocoapods ×1
deployment ×1
enterprise ×1
frameworks ×1
ibaction ×1
ios8 ×1
itunes-store ×1
nsarray ×1
random ×1
uibutton ×1
xcode4 ×1