草庐IT

get_foo_display

全部标签

iPhone : Unable to display Arabic fonts properly. 如何使用字形来显示它?

我想在我的应用程序中显示阿拉伯语字体(me_quran字体)。我的数据库中有阿拉伯语文本。阿拉伯语文本示例:“بِسْمِٱللوّهِٱلروّْموٰنِٱلروّحِيمِ”我已经尝试过以下事情。1)尝试:在info.plist文件中,我在fontsprovidedbyapplication选项中添加了.ttf文件。[UIFontfontWithName:@"me_quran"size:20.0];2)尝试:尝试使用ArabicConverter演示代码。以上尝试的结果:应用程序未显示正确的阿拉伯语字体。例如,它用于显示圆形,假设是半圆形,如月亮形状。很多时候它只显示线条而不是带

iPhone : Unable to display Arabic fonts properly. 如何使用字形来显示它?

我想在我的应用程序中显示阿拉伯语字体(me_quran字体)。我的数据库中有阿拉伯语文本。阿拉伯语文本示例:“بِسْمِٱللوّهِٱلروّْموٰنِٱلروّحِيمِ”我已经尝试过以下事情。1)尝试:在info.plist文件中,我在fontsprovidedbyapplication选项中添加了.ttf文件。[UIFontfontWithName:@"me_quran"size:20.0];2)尝试:尝试使用ArabicConverter演示代码。以上尝试的结果:应用程序未显示正确的阿拉伯语字体。例如,它用于显示圆形,假设是半圆形,如月亮形状。很多时候它只显示线条而不是带

ios - CALayers 从不称其为委托(delegate)的 drawLayer :inContext: even after [layer setNeedsDisplay] and [layer display]

我不明白为什么我创建的CALayer没有调用它们的drawLayer方法。我已经为他们创建了一个drawLayer委托(delegate)对象,但它从未被调用过。来自UIView子类:-(id)initWithFrame:(CGRect)frame{self=[superinitWithFrame:frame];if(self){UIView*bg=[[UIViewalloc]initWithFrame:self.bounds];//Ihaveapropertycalled'bg'toreferencethechildUIViewself.bg=bg;[selfaddSubview:s

ios - CALayers 从不称其为委托(delegate)的 drawLayer :inContext: even after [layer setNeedsDisplay] and [layer display]

我不明白为什么我创建的CALayer没有调用它们的drawLayer方法。我已经为他们创建了一个drawLayer委托(delegate)对象,但它从未被调用过。来自UIView子类:-(id)initWithFrame:(CGRect)frame{self=[superinitWithFrame:frame];if(self){UIView*bg=[[UIViewalloc]initWithFrame:self.bounds];//Ihaveapropertycalled'bg'toreferencethechildUIViewself.bg=bg;[selfaddSubview:s

ios - 在 dispatch_get_main_queue() 上更新 UI

我有一个问题与使用队列更新主线程上的UI有关。好吧,假设我们创建了一个UITableView,它显示了一个带有UIImageView的UILabel。UIImage在prepareCellfor..中异步加载:dispatch_async(t_queue,^{//loadimage//dispatch_async(dispatch_get_main_queue(),^{cell.imageView=image;}});但是当block正在获取图像时,用户按下一个单元格(或导航ViewController上的后退按钮)并为该单元格加载DetailViewController(或返回应用程

ios - 在 dispatch_get_main_queue() 上更新 UI

我有一个问题与使用队列更新主线程上的UI有关。好吧,假设我们创建了一个UITableView,它显示了一个带有UIImageView的UILabel。UIImage在prepareCellfor..中异步加载:dispatch_async(t_queue,^{//loadimage//dispatch_async(dispatch_get_main_queue(),^{cell.imageView=image;}});但是当block正在获取图像时,用户按下一个单元格(或导航ViewController上的后退按钮)并为该单元格加载DetailViewController(或返回应用程

ios - 谷歌地图 API : Getting coordinates of current location iOS

我目前正在我的项目中使用GoogleMapsAPI。我正在尝试将默认相机/缩放设置为用户位置。我这样做:@implementationViewController{GMSMapView*mapView_;}@synthesizecurrentLatitude,currentLongitude;-(void)viewDidLoad{[superviewDidLoad];mapView_.settings.myLocationButton=YES;mapView_.myLocationEnabled=YES;}-(void)loadView{CLLocation*myLocation=ma

ios - 谷歌地图 API : Getting coordinates of current location iOS

我目前正在我的项目中使用GoogleMapsAPI。我正在尝试将默认相机/缩放设置为用户位置。我这样做:@implementationViewController{GMSMapView*mapView_;}@synthesizecurrentLatitude,currentLongitude;-(void)viewDidLoad{[superviewDidLoad];mapView_.settings.myLocationButton=YES;mapView_.myLocationEnabled=YES;}-(void)loadView{CLLocation*myLocation=ma

objective-c - 如何抑制弃用警告 "dispatch_get_current_queue() is deprecated...in iOS 6.0"?

所以问题是主题问题-我想摆脱这个非常烦人的警告。有没有办法让它静音?注意:我使用dispatch_get_current_queue()仅用于调试目的。 最佳答案 您可以使用以下代码来抑制警告。#pragmaclangdiagnosticpush#pragmaclangdiagnosticignored"-Wdeprecated-declarations"dispatch_get_current_queue()//yourdeprecatedcallingcode#pragmaclangdiagnosticpop

objective-c - 如何抑制弃用警告 "dispatch_get_current_queue() is deprecated...in iOS 6.0"?

所以问题是主题问题-我想摆脱这个非常烦人的警告。有没有办法让它静音?注意:我使用dispatch_get_current_queue()仅用于调试目的。 最佳答案 您可以使用以下代码来抑制警告。#pragmaclangdiagnosticpush#pragmaclangdiagnosticignored"-Wdeprecated-declarations"dispatch_get_current_queue()//yourdeprecatedcallingcode#pragmaclangdiagnosticpop