小编Tul*_*lon的帖子

App Store Connect 消息:您的帐户很快需要迁移到联合身份验证

我在 App Store Connect 上收到此消息:

您的帐户很快需要迁移到联合身份验证。您可以立即开始此过程,也可以等到 2020 年 8 月 28 日让您的帐户自动迁移。

在此处输入图片说明

如果我单击“立即开始该过程”,则会得到以下信息:

{"data":null,"messages":{"warn":null,"error":["Not Found"],"info":null},"statusCode":"ERROR"}
Run Code Online (Sandbox Code Playgroud)

当我点击“了解更多”时,Safari 无法为我打开页面。它给出了这个:

在此处输入图片说明 在此处输入图片说明

所以你们中的任何人都可以告诉我这是怎么回事吗?

macos ios apple-developer app-store-connect apple-developer-account

129
推荐指数
3
解决办法
6926
查看次数

推送通知ON或OFF在iOS中检查

如果应用程序正在运行(或从恢复模式打开),我想在iOS设备中检查"推送通知选项".如果选项为OFF,我使用以下代码进行检查:

-(void)PushNotificationServiceChecking
{
    UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

    if (types == UIRemoteNotificationTypeNone)
    {
        NSString *msg = @"Please press ON to enable Push Notification";
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Push Notification Service Disable" message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"ON", nil];
        alert.tag = 2;
        [alert show];
    }
}
Run Code Online (Sandbox Code Playgroud)

然后我使用以下代码进入"设置选项卡>>通知中心",以便用户可以手动操作:

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
    if (alertView.tag == 2)
    {
        if (buttonIndex == 0)
        {
            // this is the cancel button
        }
        else if (buttonIndex == 1)
        {
            [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound|UIRemoteNotificationTypeAlert)];
        }
    }

} …
Run Code Online (Sandbox Code Playgroud)

iphone push-notification apple-push-notifications ipad ios

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

UIView背景颜色总是黑色

当我UIView以编程方式添加到视图控制器时,我无法将背景颜色更改为任何其他颜色,它始终保持黑色.

- (void)drawRect:(CGRect)rect
{
    // Drawing code
    self.backgroundColor = [UIColor blueColor];

    UIBezierPath *path = [[UIBezierPath alloc] init];
    [path moveToPoint:CGPointMake(100, 33)];
    [path addLineToPoint:CGPointMake(200, 33)];
    path.lineWidth = 5;
    [[UIColor redColor] setStroke];
    [path stroke];
}
Run Code Online (Sandbox Code Playgroud)

当我注释掉drawrect:并添加self.backgroundColor = [UIColor blueColor];到初始化程序时,颜色会发生变化:

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor blueColor]
    }
    return self;
}
Run Code Online (Sandbox Code Playgroud)

为什么这个以及我需要改变什么?其实我希望背景是透明的.

objective-c uiview ios

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

UIView的表现:removeFromSuperview VS hide

这个问题非常基础.UIView从视图层次结构中删除a 和隐藏a 之间的性能差异是UIView什么?

我已经读过应该从视图层次结构中删除不需要的视图.我目前的情况是,UIButton有时应该可见.我什么时候隐藏它UIButton以及何时从它的超视图中删除它?

更改视图层次结构是否昂贵?

objective-c subview uiview ios

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

UIView animateWithDuration和UIProgressView setProgress

我希望UIProgressView在10秒内将我的进度从0变为1.

码:

[UIView animateWithDuration:10.0 animations:^{
    [_myProgressView setProgress:1 animated:YES];
} completion:(BOOL finished)^{
    if (finished) NSLog(@"animation finished);
}];
Run Code Online (Sandbox Code Playgroud)

动画工作正常,但完成后NSLog总是立即调用.

我试过animateWithDuration: withDelay:但延迟没有得到尊重并立即执行.

有谁遇到过同样的问题?

谢谢你的帮助.

objective-c uiprogressview uiviewanimation ios

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

适用于ios应用程序的CCAvenue Gateway集成工具包

嗨,
我开发了一个需要支付网关的应用程序.我已经开始研究"Paypal"了.它很成功,现在我需要整合另一个支付网关,即"ccavenue".任何人都可以帮助我如何整合那个?
谢谢.

iphone xcode objective-c ccavenue ios

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

NSConcreteTask launchWithDictionary崩溃

我似乎得到了很多像这样的崩溃报告:

Crashed Thread:  14

Exception Type:  EXC_GUARD
Exception Codes: 0x4000000200000000, 0x00007fff96f73c48

Thread 14 Crashed:
0   libsystem_kernel.dylib              0x00007fff97b7213a dup + 10
1   com.apple.Foundation                0x00007fff8a116cee -[NSConcreteTask launchWithDictionary:] + 2457
2   com.mycompany.myapp  0x0000000100022814 +[MCSoftwareUpdate automaticallyCheckForUpdates] + 352
3   com.apple.Foundation                0x00007fff89fed76b __NSThread__main__ + 1318
4   libsystem_pthread.dylib             0x00007fff8d2e4899 _pthread_body + 138
5   libsystem_pthread.dylib             0x00007fff8d2e472a _pthread_start + 137
6   libsystem_pthread.dylib             0x00007fff8d2e8fc9 thread_start + 13
Run Code Online (Sandbox Code Playgroud)

它不仅影响上述方法 - 它会影响使用的任何代码NSTask.我做了一些研究,并建议修复权限可以解决问题,但这不是很有用,因为我无法与报告这些崩溃的用户联系.我已经将代码放在try catch块中 - 我还能做些什么来最小化或消除它吗?

我编写了以下函数来包装NSTask.

码:

+ (BOOL)runTask:(NSString*)taskPath arguments:(NSArray*)args task:(NSTask**)taskObj
{
    if (![[NSFileManager defaultManager] isExecutableFileAtPath:taskPath] || …
Run Code Online (Sandbox Code Playgroud)

cocoa objective-c nstask

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

NSDateFormatter以格式YYYY-MM-ddTHH:mm:ssZ返回nil

我正在尝试NSDate使用以下格式从字符串中获取"YYYY-MM-ddTHH:mm:ssZ" NSDateFormatter.在NSDateFormatter总回报nil.这是我试图这样做的方式:

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"YYYY'-'MM'-'dd'T'HH':'mm':'ss'Z'"];
NSDate *dateFromString = [dateFormatter dateFromString:@"2013-08-09T18:30:00+02:00"];
Run Code Online (Sandbox Code Playgroud)

datetime objective-c nsdate nsdateformatter

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

适用于iOS的Google Maps SDK不断增加内存使用量

我已经构建了一个在地图上显示标记的简单应用程序,我从服务器的JSON文件加载其x,y,标记是可点击的,所以一旦你在任何标记上它将你带到另一个UIViewController(让我们命名BViewController).我所以每次我回去从监控内存使用BViewControllerMapViewController(这是里面的地图),它只是增加一倍的内存我试图将其设置为使用nill或删除它superView,但没有任何改变

我的项目使用ARC.

所以请知道如何减少这种用法.
提前致谢

google-maps memory-management objective-c ios google-maps-sdk-ios

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

UITextField在iOS中将占位符颜色设置为暗

我试图将UITextField "占位符"颜色设置为黑暗.

NSAttributedString * search = [[NSAttributedString alloc] initWithString:@"Search" attributes:@{NSForegroundColorAttributeName: [UIColor blackColor]}];

textField.attributedPlaceholder = search;
Run Code Online (Sandbox Code Playgroud)
  • 但仍然UITextField"占位符"中显示浅灰色.

  • 是否可以设置深色"占位符"颜色UITextField

我也尝试了另一种方法

[textField setValue:[UIColor blackColor] forKeyPath:@"_placeholderLabel.textColor"];
Run Code Online (Sandbox Code Playgroud)

但这两种方法都适用于iOS 7,但不适用于iOS 6.

  • 是否可以在iOS 6目标中设置黑暗的"占位符"颜色?UITextField

谢谢!

objective-c placeholder uitextfield ios

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