小编Zia*_*Zia的帖子

是否可以在iOS 9上从多任务中选择您的iPad应用程序

我有一个大型应用程序,我需要一些时间来优化iOS9.

编辑:我担心的是当应用程序窗口大小减少时,所有UI都被挤压在一起.所以我的问题是,有没有办法强制全屏显示应用程序?

xcode multitasking ipad ios ios9

65
推荐指数
4
解决办法
3万
查看次数

iOS 7中导航栏的默认背景颜色是什么?

我想将菜单的背景颜色设置为导航栏的背景颜色.做这个的最好方式是什么?

cocoa-touch uinavigationbar ios ios7

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

UILabel文字删除与颜色

我使用以下代码来查看文本

NSMutableAttributedString *attributeString = [[NSMutableAttributedString alloc] initWithString:(text ? text : @"")];
[attributeString addAttribute:NSStrikethroughStyleAttributeName
                        value:@2
                        range:NSMakeRange(0, [attributeString length])];

label.attributedText = attributeString;
Run Code Online (Sandbox Code Playgroud)

文字为白色,因此删除线也是白色.我想把它改成红色.我怎么能这样做?

objective-c uilabel ios

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

通过插入可见空格来格式化安全文本条目

我希望用户以•••••••••的格式输入社会安全号码.用户键入前3个数字,然后手动附加空格.然后他们再输入2个数字,我手动添加一个空格.当然,即使空间也显示为•.是否有一种本地方式来改变这种行为?我目前正在使用一个时髦的手动实现.

user-interface cocoa-touch user-input ios

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

大标题UINavigationbar底线在滚动时闪烁

我有一个带有tableview的视图控制器.拉下桌面视图会按预期展开导航栏,但底部发线会闪烁.以前有人遇到过这个问题吗?

?

ios swift

10
推荐指数
1
解决办法
730
查看次数

随着TestFlight被iTunes Connect取代,企业应用程序beta测试将会发生什么?

我在iTunes Connect开发人员指南中找不到关于企业beta测试的任何内容,所以我希望这个问题在这里看起来不太合适.此外,它在这里说即使是beta也将受到审查.我们正在使用私有API,因此应用程序不会通过审核.

我希望能够继续测试我们的企业应用程序,而无需任何AppStore评论.我可以在iTunes Connect上执行此操作,还是现在必须找到替代方案?如果它是第二个,那么请你推荐任何可能的替代品.提前致谢!

beta-testing ios testflight

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

在Swift中更改UITabBar selectedItem

如何以编程方式更改UITabBar中的所选项?

uitabbar ios swift swift2

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

部署后启动时Swift代码崩溃的应用程序

我们的应用程序包含Swift代码.我们将目标的嵌入式内容包含Swift Code值更改为并撤销,然后重新创建我们的证书.在使用我们的开发人员证书签署IPA后,我们将其发送给了我们的客户.他们使用分发证书辞职,并将应用程序部署在自己的App Store中.成功安装后,应用程序在启动时崩溃并显示以下日志.

.... Frameworks/libswiftCore.dylib无效:0xe8008015:找不到此可执行文件的有效配置文件...

I̶̶d̶o̶̶n̶o̶t̶̶t̶h̶i̶n̶k̶这是与技术问答QA1886相同的问题

xcode ios swift

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

给 CAGradientLayer 添加遮罩使 UIBezierPath 消失

我想向带有渐变的视图添加内边框。以下代码有效并给了我这个结果

在此处输入图片说明

import UIKit

class InnerGradientBorderView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = UIColor.clear
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        backgroundColor = UIColor.clear
    }

    override func draw(_ rect: CGRect) {
        super.draw(rect)

        addGradientInnerBorder(width: 8, color: FlatWhite())
    }

    func addGradientInnerBorder(width: CGFloat, color: UIColor) {

        // Setup
        let topLeftO = CGPoint(x: 0, y: 0)
        let topLeftI = CGPoint(x: width, y: width)

        let topRightO = CGPoint(x: frame.width, y: 0)
        let topRightI = CGPoint(x: frame.width - width, y: width)

        let bottomLeftO …
Run Code Online (Sandbox Code Playgroud)

cashapelayer ios uibezierpath cagradientlayer swift

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

在UITableView编辑模式下更改删除按钮标题

当我打电话时[self.tableView setEditing:YES animated:YES],tableview进入编辑模式.当我按下圆形减号按钮时,会出现删除按钮.我想更改此删除按钮的标题.我怎样才能做到这一点?

cocoa-touch uitableview ios

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

具有多个方向问题的AVCaptureSession

我正在尝试实施条形码扫描仪.我有一个AVCaptureSession从AVCaptureDevice接收视频.我想支持所有方向.使用以下代码,当我运行应用程序时,纵向方向的一切都很好.但是在横向方向上,视图会旋转但视频输入不会旋转.所以我最终得到了90度旋转视频.

当我实现 - (NSUInteger)supportedInterfaceOrientations方法时,一切都被锁定到纵向位置.

谁能告诉我如何解决这个问题?

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    [self setupCaptureSession];

    _previewLayer.frame = _previewView.bounds;
    _previewView.center = self.view.center;
    _previewView.backgroundColor = [UIColor redColor];
    [_previewView.layer addSublayer:_previewLayer];

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationWillEnterForeground:) name:UIApplicationWillEnterForegroundNotification object:nil];

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidEnterBackground:) name:UIApplicationDidEnterBackgroundNotification object:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [self startRunning];
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [self stopRunning];
}

-(void) …
Run Code Online (Sandbox Code Playgroud)

iphone avfoundation ipad ios

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

SFSpeechRecognizer是否需要互联网连接?

SFSpeechRecognizer工作的Siri一样在处理上苹果服务器上完成的,或者这是在iPhone上本地完成?

speech-recognition ios ios10

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

iOS 8崩溃 - objc_msgSend()选择器名称:respondsToSelector:

我有以下崩溃报告.它只发生在iOS 8上.我确切知道如何重现它,但不能在我的生活中找出问题在我的代码中的位置.当我使用断点并尝试单步执行应用程序时,崩溃不会发生.如何在我的应用中找到问题所在?

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x10
Crashed Thread:  0

    Application Specific Information:
objc_msgSend() selector name: respondsToSelector:

Thread 0 Crashed:
0   libobjc.A.dylib                      0x00000001974b3bd0 objc_msgSend + 16
1   UIKit                                0x000000018ab960f4 -[UIToolbar _didMoveFromWindow:toWindow:] + 108
2   UIKit                                0x000000018aa30d44 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 700
3   UIKit                                0x000000018aa30d44 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 700
4   UIKit                                0x000000018aa30d44 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 700
5   UIKit                                0x000000018aa303dc __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 140
6   UIKit                                0x000000018aa302bc -[UIView(Hierarchy) _postMovedFromSuperview:] + 480
7   UIKit                                0x000000018aa3c0b0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1788
8   UIKit …
Run Code Online (Sandbox Code Playgroud)

objc-message-send ios8

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