ios6

Why arabic font is not showing in iPhone (I can see text, but not font)

Deadly 提交于 2019-12-11 02:59:54
问题 I am writing arabic text programmatically as discussed here and here. As per this solution, I can see english text in proper font, however when I am doing same with Arabic font, default font is coming and not the real one. Below are the screenshots for the same. English working fine Arabic taking default font instead of actual font Font.ttf screenshot Downloaded arabic font from here. (third font in list Font #: 23)... My Question Is , why this is happening with Arabic font? I checked with

stringByEvaluatingJavaScriptFromString is not working in iOS 6

依然范特西╮ 提交于 2019-12-11 02:56:21
问题 I am seeing problem happen only on iOS 6 but working fine on below iOS 6 version. My app is loading image from a link which need to enlarge its image pixels to populate within size of UIWebView by using Javascript. The link image is originally in pixels 140x24. I see it is running over the line, but the image not being scaled up using iOS 6 simulator. It does work in iOS 5 simulator. Please help. (void)webViewDidFinishLoad:(UIWebView *)webView { [webView stringByEvaluatingJavaScriptFromString

Mapview crashes in iOS 6

妖精的绣舞 提交于 2019-12-11 02:56:11
问题 I'm having a problem when I'm loading map view in iOS 6. But it's working 100% with previous OS versions. Here's the code: //.h file MKMapView *galleryListMap; //map view NSMutableArray *copyOfAllRecords; //array with locations And here is the code structure in my .m file. I have synthesized variables and released them in dealloc method. //this will runs in a background thread and populateMap method will make all the annotations //[self performSelectorInBackground:@selector(populateMap)

MFMailComposer not working in io6 landscape mode

烂漫一生 提交于 2019-12-11 02:17:19
问题 if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController * mailComposeController=[[MFMailComposeViewController alloc]init]; mailComposeController.mailComposeDelegate = self; // mailComposeController.wantsFullScreenLayout = NO; [mailComposeController setSubject:@"WallPaperApp."]; [mailComposeController setMessageBody:@"This is my new Wallpaper." isHTML:NO]; UIImage *img=mainImageView.image; UIImage *img1=[UIImage imageNamed:@"aaa.jpg"]; NSData *imageData =

iOS6 JavaScript touchmove event pass through vertical scroll afterwards jQuery animate does not fire

雨燕双飞 提交于 2019-12-11 01:59:44
问题 I have a div with a javascript touchmove event listener that scrolls the image inside the div horizontally on iOS6 Mobile Safari. I'd like allow vertical scrolling of the page to bubble up to the browser but when this occurs, jQuery.animate no longer works. I've posted a simplified version of the code that demonstrates the problem at https://gist.github.com/4047733 The steps I take to recreate the problem are: Swipe picture left/right and notice how it animates back to the left edge Touch the

Sms sending without MFMessgeViewController on ios 6

霸气de小男生 提交于 2019-12-11 01:55:15
问题 Anybody no to send sms programmatically in iOS6 .Earlier I was using core telephony method to send SMS.It's working fine up to iOS5 but on iOS6 my code is not working. I using following code: BOOL success = [[CTMessageCenter sharedMessageCenter] sendSMSWithText:@"Message" serviceCenter:nil toAddress:@"8800781656"]; What am I doing wrong? Thanks in advance 回答1: I would make an educated guess that Apple has closed a loop hole in their API. They do not want applications to send SMS message in

Pack CollectionViewCells tightly together on iOS?

纵然是瞬间 提交于 2019-12-11 01:49:43
问题 If you want to to pack the cells neatly together even if some of the other content in another cell is bigger, how do one do that? If you look at the picture below, the first string is the biggest, but if I want to pack the other cells as neatly and tightly together as the first one, regardless of the size, how is this done? I want to do this regardless of the size both from the sides and up and down. I want the cells to be laid out as the arrows in this picture are pointing. UPDATE: the first

QLPreviewController hide print button in ios6

泪湿孤枕 提交于 2019-12-11 01:46:51
问题 How can I hide the print button in QLPreviewController In IOS5 , this code works QLPreviewController *previewController = [[QLPreviewController alloc] init]; previewController.dataSource = self; previewController.delegate = self; previewController.currentPreviewItemIndex = _fileidx; [[self navigationController] pushViewController:previewController animated:YES]; [previewController.navigationItem setRightBarButtonItem:nil]; but in IOS6, it does`t. 回答1: i managed to do it by creating a timer to

Change to wantsSoftwareDimming in iOS 6?

ぃ、小莉子 提交于 2019-12-11 01:46:30
问题 This is regarding the question: Turn off display in iPhone OS (iOS) As alternative to turning off display, I am looking for a way to dim screen as much as possible. I found following questions: How to change brightness in iOS 5 app? Make the iPhone Screen Dim And this documentation: http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UIScreen_Class/Reference/UIScreen.html Per this questions/documentation, I should be able to do this to dim screen additional to decreasing

respondsToSelector - not working

依然范特西╮ 提交于 2019-12-11 01:42:18
问题 I've read through like 10 posts, but haven't found what's wrong with my implementation. This app was written in iOS 6 but updated to iOS7, so I want to offer support for both iOS6 and iOS7. But if I run an iOS7-only method on an iOS6 device, it breaks. So I thought of adding respondsToSelector, to check it has iOS7 on it, but for some reason, the if always returns false. AppDelegate.m: if ([[UINavigationBar appearance] respondsToSelector:@selector(shadowImage)]) if ([[UINavigationBar