草庐IT

clnt_call

全部标签

ios - (空)libc++abi.dylib : terminate called throwing an exception

我使用Xcode4.5PR和iOS6beta2。我没有更改任何代码,我的应用程序抛出了标题中提到的异常。我使用了导致此异常的函数调试窗口,但它显示0x38dda960:push{r4,r5,r6,r7,lr}我怎样才能发现问题?我该如何解决? 最佳答案 在C++异常上设置断点以查找它被抛出的位置。 关于ios-(空)libc++abi.dylib:terminatecalledthrowinganexception,我们在StackOverflow上找到一个类似的问题:

ios - Swift 2 jSON Call 可以抛出但未标有try

昨天我更新到ElCapitanbeta2和Xcode7-beta是强制性的。所以我将我的应用程序更新为Swift2,新的错误出现在json字符串中。这是我的代码:让jsonData:NSDictionary=NSJSONSerialization.JSONObjectWithData(urlData!,options:NSJSONReadingOptions.MutableContainers)作为!NSDictionary这是错误:Callcanthrow,butitisnotmarkedwith'try'andtheerrorisnothandled 最

ios - Swift : use of 'self' in method call before super. init初始化自编译报错

我创建了一个处理音频录制/播放的自定义类,并在该类中放置了一个Protocol。我在UIViewController类中实现了Protocol并为我的AudioHelper类调用了我的setDelegate方法。我收到一个与我的init()有关的编译错误。不确定如何消除错误:在super.init初始化self之前在方法调用“setupAudioSession”中使用“self”overrideinit(){setupAudioSession()super.init()}如何解决此错误?为什么我必须覆盖init()?我的AudioHelper类importFoundationimpor

ios - 不断收到 "Unbalanced calls to begin/end appearance transitions for <ViewController>"错误

我有一个几乎完美运行的应用程序。以下是我的应用程序的结构:Storyboard上共有6个ViewController。前3个ViewController是最重要的。初始ViewController具有“登录”和“注册”按钮。“登录”按钮以模态方式呈现登录ViewController,“注册”按钮以模态方式呈现注册ViewController。注册ViewController有3个字段用于用户名、密码和电子邮件,然后是一个“提交”按钮。提交按钮将数据提交到我的网络服务器,如果所有内容都成功提交,它会自行调用“performSegueWithIdentifier”方法。声明如下:[self

iOS 核心蓝牙 : centralManager:didConnectPeripheral/didFailToConnectPeripheral: not getting called

我正在努力解决这个问题。我正在尝试连接到BLE设备,但在下面的代码中看不到我做错了什么。-(void)viewDidLoad{[superviewDidLoad];//Doanyadditionalsetupafterloadingtheview,typicallyfromanib._cm=[[CBCentralManageralloc]initWithDelegate:selfqueue:nil];}-(void)viewDidAppear:(BOOL)animated{[superviewDidAppear:animated];}-(void)didReceiveMemoryWar

ios - 应用程序 :didReceiveRemoteNotification:fetchCompletionHandler Not Called

当应用程序被强制退出时,函数application:didReceiveRemoteNotification:fetchCompletionHandler似乎没有被调用。我的印象是无论应用程序处于什么状态都会调用该函数,但似乎只有当应用程序已经在后台运行时才会调用它。如果应用程序尚未使用新的iOS7远程通知后台模式运行,是否有办法在后台唤醒该应用程序? 最佳答案 application:didReceiveRemoteNotification:fetchCompletionHandler:即使应用程序暂停、根本不运行、后台运行或处于

ios - accessoryButtonTappedForRowWithIndexPath : not getting called

我正在创建一个详细信息披露按钮,该按钮正在使用数组进行填充...。但是我的类中未调用accessoryButtonTappedForRowWithIndexPath:函数。它是一个TableviewDelegate和TableviewDatasource委托(delegate)。-(void)tableView:(UITableView*)tableViewaccessoryButtonTappedForRowWithIndexPath:(NSIndexPath*)indexPath{NSLog(@"reachingaccessoryButtonTappedForRowWithInde

ios - 检测应用程序是否为 : didReceiveRemoteNotification: fetchCompletionHandler: was called by tapping on a notification in Notification Center

application:didReceiveRemoteNotification:fetchCompletionHandler:不同于application:didReceiveRemoteNotification:如何?来自文档:Unliketheapplication:didReceiveRemoteNotification:method,whichiscalledonlywhenyourappisrunning,thesystemcallsthismethodregardlessofthestateofyourapp.Ifyourappissuspendedornotrunnin

ios - 初始化样式 :reuseIdentifier: not called

我正在创建自己的自定义UITableViewCell以用作原型(prototype)单元格的后端。在我的类中,我重写了initwithstyle:reuseIdentifier:方法来执行一些自定义初始化,但是我的初始化程序没有被调用。我在其中的第一行有一个断点,在dequeueResusableCellWithIdentifier:上也有一个断点。dequeueResusableCellWithIdentifier:方法被调用,它返回一个初始化的单元格,但是initwithstyle:reuseIdentifier:中的断点没有到达。任何帮助都会很棒。 最

ios - swift : Extra argument 'error' in call

我目前正在使用Swift2.0和XcodeBeta2开发我的第一个iOS应用程序。它读取外部JSON并在TableView中生成包含数据的列表。但是,我遇到了一个似乎无法修复的奇怪小错误:Extraargument'error'incall这是我的代码片段:lettask=session.dataTaskWithURL(url!,completionHandler:{data,response,error->Voidinprint("Taskcompleted")if(error!=nil){print(error!.localizedDescription)}varerr:NSErr