ios7

Ranging an iBeacon latency

血红的双手。 提交于 2020-01-23 19:33:47
问题 I have been playing around with the new iBeacons in iOS 7. I have one device setup as a beacon, and the other device ranging to detect when I am near, far, immediate, etc. I'd like to know very quickly when I cross between these ranges. Is there any way to adjust the latency? I find that I have to move my device around very slowly or I will not know when I cross these thresholds. 回答1: No, you would not be able to adjust the beacon latency. As Apple says in Region Monitoring Guide: To prevent

In iOS7, abnormal popping action of UINavigationController with edge swiping

强颜欢笑 提交于 2020-01-23 02:44:08
问题 I found one that looks like iOS7 bug while popping view controllers(VCs) in UINavigationController with edge swiping. I set up as following VC hierarchy: UINagivationController | --- UIVewControllerR (root) | --- UIViewControllerA | --- UIViewControllerB I tried to pop UIViewControllerB up by edge swiping and popped UIViewControllerA up continuously. It worked well. But, If first swiping action is canceled then retry to pop it up, a bug I found comes out. After popping UIViewControllerA, I

[UINavigationController setGoalName:]: unrecognized selector sent to instance 0x7964e2c0

非 Y 不嫁゛ 提交于 2020-01-22 20:37:32
问题 I have created the app with following code. Its working fine with iOS7 but it throws the below error when I run with iOS8. [UINavigationController setGoalName:]: unrecognized selector sent to instance 0x7964e2c0 My firstViewcontroller.m - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { GoalDetailsViewController *goalsDetailsViewController = segue.destinationViewController; NSLog(@"%@",[NSString stringWithFormat:@"%@", [[self.arrCategoryTitle objectAtIndex:indexPath.row]

What are the supported languages with AVSpeechSynthesizer?

走远了吗. 提交于 2020-01-22 15:21:04
问题 AVSpeechSynthesizer seems to support english with multi delegates (britsh, us...) Does it support other languages? french, Portuguese ... is there a list of these languages somewhere ? 回答1: Yes, it does. Use speechVoices of AVSpeechSynthesisVoice to get a list of available voices with supported languages. Currently (as of 10 September 2018, on iOS 10.3.1 and 11.4.1) you'll find these: ar-SA cs-CZ da-DK de-DE el-GR en-AU en-GB en-IE en-US en-ZA es-ES es-MX fi-FI fr-CA fr-FR he-IL hi-IN hu-HU

Animate UICollectionView cell size change and reposition surrounding cells

前提是你 提交于 2020-01-22 05:46:20
问题 Goal: To animate the change of a cell's height and reposition surrounding cells. Scenario: Some cells in a collection view load remote images. Initially, those cells are sized statically and an activity indicator is shown. After an image is loaded, it is added to its cell and the cell's height is changed to fit the photo. Notes: I am animating the cell's frame change with animateWithDuration . This works fine, except an increased cell size has it overlapping the cells below. I've blindly

iOS7 hide status bar but not adjust top layout guide

和自甴很熟 提交于 2020-01-21 06:29:30
问题 I deal with autolayout set up in Interface Builder. I want to not offset views that are pinned to top layout guide when I hide status bar in runtime. I have discovered that myViewController.topLayoutGuide.length changes from 20 to 0 when hiding status bar. How to prevent it? Or (as workaround) how to set up fullscreen view for various window sizes without pin to top layout guide? Some code to describe my situation: Log(@"frame: %@, top: %.0f", NSStringFromCGRect(myViewController.myView.frame)

iOS7 hide status bar but not adjust top layout guide

我与影子孤独终老i 提交于 2020-01-21 06:29:25
问题 I deal with autolayout set up in Interface Builder. I want to not offset views that are pinned to top layout guide when I hide status bar in runtime. I have discovered that myViewController.topLayoutGuide.length changes from 20 to 0 when hiding status bar. How to prevent it? Or (as workaround) how to set up fullscreen view for various window sizes without pin to top layout guide? Some code to describe my situation: Log(@"frame: %@, top: %.0f", NSStringFromCGRect(myViewController.myView.frame)

Default Sharing in iOS 7

你离开我真会死。 提交于 2020-01-20 12:54:28
问题 I have seen this format (Image shown below) of share option in most of the iOS applications that support iOS 7. Is there a default code/framework available to implement this share option as it is shown in the image below? 回答1: What you are looking for is the UIActivityViewController . Since you asked a general question I can't do more than give you a link to the documentation 回答2: In addition to the accepted answer, a small piece of example code - (void)shareText:(NSString *)text andImage:

Default Sharing in iOS 7

左心房为你撑大大i 提交于 2020-01-20 12:52:21
问题 I have seen this format (Image shown below) of share option in most of the iOS applications that support iOS 7. Is there a default code/framework available to implement this share option as it is shown in the image below? 回答1: What you are looking for is the UIActivityViewController . Since you asked a general question I can't do more than give you a link to the documentation 回答2: In addition to the accepted answer, a small piece of example code - (void)shareText:(NSString *)text andImage:

IBM Worklight 5.0.6.1 - Bottom white space in iOS 7

回眸只為那壹抹淺笑 提交于 2020-01-20 08:30:34
问题 As you can see, at the bottom of my page remains a white space. Its height is the same of the old status bar that was present in ios6. Do i have to modify css? Because I never fixed an height for my app, worklight has always chosen the right size. EDIT: you have to save the image and open in a desktop with different color to see the white space at the bottom. * * Licensed Materials - Property of IBM * 5725-G92 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved. * US Government Users