崩溃:严重故障:ios7中无法使用LastResort字体 [英] Crash :Critical failure: the LastResort font is unavailable in ios7

查看:63
本文介绍了崩溃:严重故障:ios7中无法使用LastResort字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将通讯录中的联系人插入到sqlite3数据库中.对于某些联系人,我的应用程序在

Iam inserting the contacts from the address book in to the sqlite3 database. for only some contacts my app is getting crashed at

sqlite3_finalize(statement)

此声明.这是在ios7中发生的.崩溃日志如下

this statement. and this is happening in ios7. The crash log is as follows

严重故障:iOS中的LastResort字体不可用."

"Critical failure: the LastResort font is unavailable. in ios"


NSString *insertSQL = [NSString stringWithFormat:@"insert into vcards (some thing data)",(something data)];
const char *insert_stmt = [insertSQL UTF8String];
      sqlite3_prepare_v2(database, insert_stmt,-1, &statement, NULL);
      if (sqlite3_step(statement) == SQLITE_DONE)
      {
         NSLog(@"Record inserted");
      }
      else {
           NSLog(@"Record inserted failed");
        }
      sqlite3_finalize(statement);
    sqlite3_close(database);

请任何一个建议我如何解决此崩溃的问题.

please any one suggest me how to fix this crash.

推荐答案

这与您的联系人无关,但与从ios 6过渡到ios 7时的字体无关.删除项目中的所有字体,然后仔细每次在.plist测试中一个一个地添加一个,然后再添加一个,直到找到导致问题的一个.

This has nothing to do with your contacts but to do with the fonts when transitioning from ios 6 to ios 7. Delete all the fonts in your project and then carefully add one by one to your .plist testing each time before adding the next until you find the one that is causing the problem.

从与您和该人的答案同样有问题的人那里查看此帖子.

Have a look at this post from someone who also had the same problem as you and the person's answer.

人员与您遇到的问题

这篇关于崩溃:严重故障:ios7中无法使用LastResort字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆