Tag: ios6

在开始页面隐藏一个UINavigationController

您好我有一个导航控制器开始与视图控制器在viewDidLoad有: self.navigationController.navigationBarHidden = YES; 我点击该页面上的一个button,它转换到第二个视图控制器,我在其中: self.navigationController.navigationBarHidden = NO; 这工作正常,直到我点击导航栏中的后退button。 如何将导航栏永久地保留在起始页面,而不是过渡页面?

embedded谷歌地图在UIWebView而不要求位置的权限,并显示谷歌面板

我正在使用加载在UIWebView中的谷歌地图来显示2个位置之间的方向 这里是我在UIWebView中加载的url NSString *routeString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&output=embed",[myData.myLat doubleValue],[myData.myLng doubleValue],[view.annotation coordinate].latitude,[view.annotation coordinate].longitude]; 当我删除output = ember参数的谷歌面板显示,但UIWebView要求获得用户的位置,我已经在我的应用程序做的权限, 当我添加输出=embeddedUIWebView不要求位置权限,但谷歌面板不显示。 我如何防止UIWebView显示位置权限,并在同一时间查看谷歌面板? 日Thnx

iOS应用程序在下载后自动删除

我正在使用Xcode 4.6.1为iOS> 5.0开发一个应用程序。 要testing应用程序,我使用Save for Enterprise or Ad-hoc deployment存档应用程序。 我也检查了Save for Enterprise Distribution并填写适当的字段。 到目前为止,我能够创build一个myApp.ipa文件和myApp.plist文件。 我已经创build了一个URL到myApp.plist 。 有一次,我点击了url,myApp开始正确下载。 我的问题是,一旦下载完成,myApp删除自己,我没有崩溃日志,什么都没有。 我GOOGLE了,也没有得到任何东西。 问题是我的一个客户端能够下载myApp并使用它。 我认为这个问题与configuration文件有关,但是这两个设备都注册了相同的configuration文件。 所以,我无能为力。 可能是什么问题呢 ? myApp如何删除自己? 谢谢你们。 编辑:这里是控制台日志。 5月10 12:02:15 IK installd [3728]:configuration文件无效:0xe8008012 5月10日12:02:15 IK installd [3728]:00403000 install_embedded_profile:无法安装embedded的configuration文件:-402620398 5月10日12:02:15 IK installd [3728]:授权'keychain-access-groups'的值不被准备configuration文件 5月10日12:02:15 IK installd [3728]:授权“应用程序标识符”具有configurationconfiguration文件不允许的值 5月10日12:02:15 IK SpringBoard [15]:杀net.caretta.iAnahtar终止断言

如何解决在VAFieldTest应用程序中发生的_CTServerConnectionRegisterForNotification崩溃

我试图在我的设备上运行VAFieldTest应用程序,但应用程序崩溃在这一行_CTServerConnectionRegisterForNotification 。 我怎样才能解决这个崩溃? 这是我通过的参数: CTServerConnectionRef conn; void register_notification(){ if (!mach_port || !conn) return; void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony", RTLD_LOCAL | RTLD_LAZY); void *kCTCellMonitorUpdateNotification = dlsym(libHandle, "kCTIndicatorsSignalStrengthNotification"); if( kCTCellMonitorUpdateNotification== NULL) NSLog(@"Could not find kCTCellMonitorUpdateNotification"); int x = 0; //placehoder for callback _CTServerConnectionRegisterForNotification(conn,kCTCellMonitorUpdateNotification,(void*)&x); } 这是崩溃报告: (gdb) bt #0 0x344f9710 in __CFStrConvertBytesToUnicode () #1 0x344faaea in __CFStringEncodeByteStream () #2 […]

如何使用代码显示SomeViewControler?

我在Xcode和iOS开发中是全新的。 我想弄清楚如何打开/显示基于button点击一些视图。 我知道我可以做到这一点使用Ctrl +鼠标点击一些ViewController使用segue,但我需要添加一些逻辑之前。 我怎样才能做到这一点?

注册短信通知

我可以通过我的应用程序注册短信通知吗? 所有我想要的是当我的应用程序用户正在做任何短信我的应用程序增加计数器。

在AppDelegate中的ViewController中执行预制函数

在收到推送通知时,AppDelegate可以在viewcontroller中运行“函数”吗? 该应用程序包含三个选项卡,第三个需要在应用程序获取推送通知时重新加载其webview。 – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { }

AFNetworking:setRedirectResponseBlock在我的类NSURLResponse总是返回空值

我正在使用AFNetworking类与networking服务交互。我在这方面有一些问题。 AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc]initWithRequest:theRequest];// using AFHTTPRequestOperation to request Data [operation setRedirectResponseBlock:^NSURLRequest *(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse) { NSLog(@"connection :%@",connection); NSLog(@"request :%@",request); NSLog(@"response :%@",redirectResponse); question 1:? i get NSURLResponse value is null. output:response :(null) return request; }]; 在断点的帮助下,我检查AFNetworking类(类名:AFURLConnectionOperation.m)是否从服务器获得响应? 是的,它得到了回应。 – (void)setRedirectResponseBlock:(NSURLRequest * (^)(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse))block { self.redirectResponse = block; NSLog(@"connection […]

如何从ios中的应用程序文件夹按datesortinguiimages

如何通过从图库中sortingdate修改types来显示图像。 我可以从文件夹中使用数据 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSFileManager *manager = [NSFileManager defaultManager]; 另外如何比较uiimage修改date。 提前致谢….

有时在NSDate中获得一小时的差异

我正在使用IOS 6和IOS 5.我在一个小时的时间里获得了不同。 而我使用的date格式为@"MMM d, yyyy HH:mm aaa" 。 我也试过了@"MMM d, yyyy h:mm aaa" 。 实际上,我正在为当前的本地设置通知的固定时间。 时间固定为上午10点在不同的date。 它正在控制台上正确显示date,但时间与澳大利亚时区不同,显示为"2012-10-02 14:00:00 +0000 or 2012-10-02 13:00:00 +0000" 。 当我将date格式更改为@"MMM d, yyyy h:mm aaa" ,显示"2012-10-02 00:00:00 +0000 or 2012-10-02 23:00:00 +0000" 。 请build议。