执行以下代码的时候:
[self dismissViewControllerAnimated:NO completion:nil];
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];// 用户选择的图片
CropImageViewController *cropViewController = [[CropImageViewController alloc] initWithImage:image andImageScale:1.25];
cropViewController.delegate = self;
[self.navigationController pushViewController:cropViewController animated:NO];
控制台显示警告:
Unbalanced calls to begin/end appearance transitions for
原因是dismissViewController还没有执行完,就开始执行pushViewController,动画有冲突,解决的办法是,把push写到dismiss的completion block里
[self dismissViewControllerAnimated:NO completion:^{
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];// 用户选择的图片
CropImageViewController *cropViewController = [[CropImageViewController alloc] initWithImage:image andImageScale:1.25];
cropViewController.delegate = self;
[self.navigationController pushViewController:cropViewController animated:NO];
}];
分享到:
相关推荐
to generate unbalanced targets with good prefixes but bad suffixes, and thus performance suffers when dealing with long sequences. We propose a simple yet effective approach to overcome this ...
installation and tap settling for voltage regulators to provide a smooth voltage profile along network .the effectiveness of method is done on 19 bus and 25 bus unbalanced radial distribution system.
presents a novel adaptive neuro-fuzzy control approach for the renewable interfacing inverter. The main objective is to achieve smooth bidirectional power flow and nonlinear unbalanced load ...
To understand a scene in depth not only involves locating/recognizing individual objects, but also requires to infer the relationships and interactions among them. However, sincethedistributionofreal-...
健身房不平衡磁盘安装python -m ...基本用途import gym, gym_unbalanced_disk, timeenv = gym.make('unbalanced-disk-v0')obs = env.reset()for i in range(200): obs, reward, done, info = env.step(env.action_spac
非均衡带宽需求下的最大双向绿波协调控制模型,卢凯,徐建闽,寻求最大绿波带宽是城市干道信号协调控制设计的重要目标。针对非均衡带宽需求下的双向绿波带宽最大问题,MAXBAND与MULTIBAND模型均通�
Instantaneous Active and Reactive Current Component Method for Active Filters under Balanced & Unbalanced mains Voltage Conditions for 3-ph 3-wire System
audioset unbalanced 训练数据集,包括527种声音
new_unbalanced_PMSG_Windload_loadpmsg_windpmsg_unbalancedload_源码.rar.rar
This book equips readers to handle complex multi-view data representation, centered around several major visual applications, sharing many tips and insights through a unified learning framework....
I also liked the extensive use of examples—throughout, almost half of the space is used for figures and tables illustrating the methods, which some readers might perceive as unbalanced, however....
unbalanced-toggle
ABSTRACT —— Unbalanced grid voltage sags are the severe challenge for wind power generation system which connected to the grid successfully. The dc bus voltage and output power will fluctuate under ...
A Balanced-to-Unbalanced Microstrip Power Divider With Filtering Function
A balancing voltage transformation for robust frequency estimation in unbalanced power systems
help the student know what “ballpark” answers to look for when more precise studies are made. Chapter 4 is a very important chapter in developing the exact model of line segments. How to take into ...
实现电网不平衡条件下的锁相,已经试验验证成功
A class of fundamental frequency estimation algorithmsfor unbalanced three-phase power systems is proposed.This is achieved in the complex domain by establishing andexploiting three time-series ...