问题描述
||
我对目标C和iPhone应用程序非常陌生。我正在xcode中创建一个项目,以制作iPhone应用程序。我需要在该应用程序的导航栏中添加一个下拉列表。我添加了其他按钮,例如后退按钮,刷新按钮。但是现在我需要一个下拉按钮/链接列表。请告诉我该怎么做。
提前致谢
解决方法
你可以试试看我正在扩展sabby的解决方案。仅当您添加带有按钮的视图(如按钮的垂直列表)时。使用此代码
CGRect customViewFrame = yourCustomView.frame;
customViewFrame.size.height = 0;
yourCustomView.frame = customViewFrame;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
customViewFrame.size.height = your_desired_height;
yourCustomView.frame = customViewFrame;
[UIView commitAnimations];
, 好吧,我认为您可以使用自定义,查看并在该视图上放置任意数量的按钮。然后,您需要在导航栏上单击按钮来调用该视图。
这样可以解决您的问题。