Tag: ios8

如何切换iOS自定义键盘中的单词select视图(更改高度)?

我想要在iOS 8自定义键盘中添加类似于上述的单词select视图。 如何dynamic更改键盘视图矩形大小? 和 通知活动的应用程序(如内置消息应用程序)相应地重新定位input栏? 更新:基于此 ,键盘的高度是可定制的。 这怎么可能?

CGAffineTransformMakeRotation负M_PI

我正在使用CGAffineTransformMakeRotation来旋转一个animation块内的UIView ,我想逆时针旋转180º 。 但是,当我把 myView.animateWithDuration(0.5) myView.transform = CGAffineTransformMakeRotation(CGFloat(-M_PI)) 它仍然顺时针旋转。 令我困惑的是,如果我手动写入M_PI的值,它就会按预期工作 // this will rotate counterclockwise myView.transform = CGAffineTransformMakeRotation(CGFloat(-3.14159265358979)) 为什么这种行为? 编辑:添加我正在使用animation块

无法在swift iOS 8扩展中投射UIImage

我有一个奇怪的问题,我试图build立一个行动扩展,将扫描提供的图像条形码。 这是代码。 override func viewDidLoad() { super.viewDidLoad() // Get the item[s] we're handling from the extension context. // For example, look for an image and place it into an image view. // Replace this with something appropriate for the type[s] your extension supports. var imageFound = false for item: AnyObject in self.extensionContext!.inputItems { let inputItem […]

MKMapView在iOS 8中显示空白屏幕

我有一个在iOS 8中显示MKMapView的问题。 它在iOS 7中工作正常,现在工作正常,但只在模拟器上。 在设备上,它只显示注释,但没有地图背后。 它看起来像这样: http : //imgur.com/rBVWTeD 我得到的错误: 2014-09-24 22:07:15.349 xxx[1509:265380] Stylesheet does not include style matching tree, or includes an old version. Perhaps it was compiled by an old version of the style compiler. 2014-09-24 22:07:15.351 xxx[1509:265380] Please create a radar about this! (Check it's not a dup of rdar://16346611 first though) […]

找不到类,使用默认的NSManagedObject来代替

我在IOS 8的核心数据有问题。每当我想使用insertNewObjectForEntityForName方法,我得到 找不到类,使用默认的NSManagedObject来代替。 错误信息。 我使用Objective-C,而我没有使用IOS 7这个问题。也可以有任何问题,因为在我的工作区有两个项目,其中一个包含有关代码的核心数据,另一个UI。

iOS 8自动单元格高度 – didSelectRowAtIndexPath导致UItableview跳转到顶部

我目前正在更新一个应用程序到iOS8,并取代我自己的单元格高度计算。 我有一堆自定义单元格的tableview。 每个单元格被选中时,都会在navigationController上显示/推送一个新的视图。 当tableview被填充这些单元格,并且用户select一个靠近表格底部时,tableview在新的视图出现之前跳转到右上angular。 这对用户来说很分散。 我正在尝试使用iOS 8中引入的自定义单元格(在viewDidLoad中): self.tableView.estimatedRowHeight = 60.0; self.tableView.rowHeight = UITableViewAutomaticDimension; 这里是select单元格的代码 – (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIViewController *selectedViewController = [[UIStoryboard storyboardWithName:@"Trip" bundle:nil] instantiateViewControllerWithIdentifier:@"TripDetail"]; DetailViewController *destViewController = (id)selectedViewController; [destViewController setData:self.dataStore]; [self.navigationController pushViewController:selectedViewController animated:YES]; } 有谁知道这是为什么发生? 而我怎么能使它停止?

RegisterUserNotificationSettings在ios 6.1中不起作用

我在我的项目中使用Parse SDK进行推送通知。 我已经添加了didFinishLaunchingWithOptions:的代码didFinishLaunchingWithOptions:在parse.com上给出 UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound); UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes categories:nil]; [application registerUserNotificationSettings:settings]; [application registerForRemoteNotifications]; 它的工作正常,如果设备或模拟器版本是iOS 8,但它不在iOS 6.1中工作,并且出现消息 [UIApplication registerUserNotificationSettings:]: unrecognized selector sent to instance 0x208406c0 任何人都可以告诉我如何解决它?

iOS 8:UIAlertView / UIAlertController不显示文本或button

我有一个UIAlertView在iOS 7中完美显示,但在iOS 8中,它不显示任何button或标签。 警报仍然可见,但只是一个小白盒子。 “确定”和“取消”button也将其事件作为参考,但不会显示任何文本。 我已经使用这个警报来显示一个button – (IBAction)sel_btnLogout:(id)sender { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Logout!" message:@"Are you sure you want to logout?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil]; [alert show]; } 我在iOS 8中检查了框架:它给(0,0,0,0),但在iOS 7中给出了一个确定的值。 我也检查了迭代到uialertview的子视图。 在iOS7中,它进入循环,因为它发现警报的子视图。 在iOS8中,它表示没有alertView的子视图。

检测设备是否正确显示UIVisualEffectView?

我的应用程序使用UIVisualEffectView来模糊背景,就像Control Center一样。 但是我发现可以运行iOS 8的iPad 2(和Retina iPad)function不足以显示该效果,因此它会变成灰色。 我想能够检测到该应用程序运行的设备是否足够强大,以显示模糊效果,如果不是,我不会应用它,而是我会改变背景颜色,看起来好多了那灰色的颜色。 但我不想只是检查设备是iPad 2还是iPad的第三代(这是否影响第四呢?)。 有没有更好的方法来检测UIBlurEffect是否会按预期显示?

更改SLComposeServiceViewController上的button标题?

有没有办法改变SLComposeServiceViewController的button标题? 我试图更改导航条上的栏button项目,但这些不是正确的button。