小编B.I*_*I.A的帖子

URL编码字符串

我收到一个json数据对象,然后我从中提取一个字符串

NSDictionary *jsonDictionary = [NSJSONSerialization JSONObjectWithData:data
                                                               options:0
                                                                 error:nil];
NSString *country=jsonDictionary[@"address"][@"country"];
Run Code Online (Sandbox Code Playgroud)

然后我尝试使字符串适合在URL中使用

NSString *newCountryString = [country stringByReplacingOccurrencesOfString:@" "  
   withString:@"%%20"];
Run Code Online (Sandbox Code Playgroud)

但它不起作用

如果我硬编码newCountryString它会工作,为什么呢?

url json objective-c ios

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

验证iOS App时出错

我正在尝试发布iOS应用程序,但是当我尝试验证构建时收到这些错误:

Nib file 'Main-iPad~.nib' was not found. Please ensure the specified file is included in the bundle with any required device modifiers appended to the filename

Invalid Info.plist: The Info.plist may contain either UIMainStoryboardFile or NSMainNibFile, but it must not contain both keys. For more information, refer to the Information Property List Key Reference.
Run Code Online (Sandbox Code Playgroud)

xcode app-store nib ios

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

ios app被拒绝,需要帮助确定问题

Apple今天拒绝了我的应用程序,我试图按照他们发送的崩溃日志,但我找不到崩溃的来源,我在两部实体手机上测试了我的应用程序:1- iphone 4 2- iphone 5

我在xcode模拟器上测试了它:1-Ipad 2-Ipad Retina 3-Ipad Retina(64位)

它对所有这些都很好.

这就是他们发给我的东西

We found that your app crashed on iPad running iOS 7.0.6, which is not in compliance with the App
Store Review Guidelines.

Your app crashed when we:

1) Start the app on a device
2) The app crashes on launch

This occurred when your app was used: 

- On Wi-Fi 
- On cellular network
Run Code Online (Sandbox Code Playgroud)

而这是他们寄给我的那个洛杉矶

Incident Identifier: F0618233-A16F-4782-8B79-3A2AE5D8BFF6
CrashReporter Key:   1db6124687c1282286f546adfc3c54dc0d8ed7ce
Hardware Model:      xxx
Process:             taptap [266] …
Run Code Online (Sandbox Code Playgroud)

appstore-approval ipad ios

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

标签 统计

ios ×3

app-store ×1

appstore-approval ×1

ipad ×1

json ×1

nib ×1

objective-c ×1

url ×1

xcode ×1