小编Muk*_*esh的帖子

如何在导航控制器中从下到上呈现/关闭视图控制器?

当我将 viewController 推送到 navigationController 时,我想从下到上显示动画?有人知道这样做吗?

RegisterViewController *registerView = (RegisterViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"RegisterViewController"];
Run Code Online (Sandbox Code Playgroud)

展示

[self presentViewController:registerView animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)

解雇

[self dismissViewControllerAnimated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)

有什么办法可以在导航控制器中实现这一点吗?

objective-c show-hide uinavigationcontroller ios presentviewcontroller

5
推荐指数
0
解决办法
5562
查看次数

在Xamarin.iOS中添加计时器的位置?

当我显示页面时,我需要每隔一分钟发出一次请求来更新显示的表格中的数据.我不知道在哪里添加这个定时器逻辑,因为所有控制器生命周期方法应该在适当的时间结束 - 我猜?

我应该把计时器放在哪里?

xamarin.ios ios xamarin

5
推荐指数
1
解决办法
412
查看次数

UIButton 触摸事件重叠

我需要像下面的截图一样制作 UIButton 模式。我的问题是,如果我正常设置框架并将图像设置为按钮框架。触摸事件重叠。

我正在使用以下代码,

UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom];
[button1 addTarget:self 
           action:@selector(aMethod:)
 forControlEvents:UIControlEventTouchUpInside];
[button1 setImage:[UIImage imageWithName:@"Triangle1.png"]];
button1.frame = CGRectMake(100.0, 100.0, 150.0, 150.0);
[view addSubview:button1];

UIButton *button2 = [UIButton buttonWithType:UIButtonTypeCustom];
[button2 addTarget:self 
           action:@selector(aMethod1:)
 forControlEvents:UIControlEventTouchUpInside];
[button2 setImage:[UIImage imageWithName:@"Triangle2.png"]];
button2.frame = CGRectMake(175.0, 100.0, 150.0, 150.0);// if set X to 250 then pattern not seems 
[view addSubview: button2];

UIButton *button3 = [UIButton buttonWithType:UIButtonTypeCustom];
[button3 addTarget:self 
           action:@selector(aMethod2:)
 forControlEvents:UIControlEventTouchUpInside];
[button3 setImage:[UIImage imageWithName:@"Triangle2.png"]];
button3.frame = CGRectMake(150.0, 260.0, 150.0, 150.0);// if set X to 250 then pattern not …
Run Code Online (Sandbox Code Playgroud)

objective-c uibutton ios

3
推荐指数
1
解决办法
355
查看次数

NavigationBar barTintColor对同一颜色显示不同的效果

我试图为不同的控制器设置颜色到导航栏,但相同的颜色显示不同的效果.

截图

objective-c uinavigationbar uinavigationcontroller ios

1
推荐指数
1
解决办法
271
查看次数