Ios iPhone UI元素--自定义还是默认?

Ios iPhone UI元素--自定义还是默认?,ios,iphone,objective-c,ipad,user-interface,uiactionsheet,Ios,Iphone,Objective C,Ipad,User Interface,Uiactionsheet,下面的“设置个人资料照片”下拉菜单是自定义UI元素还是默认元素?如果它是默认的,我将如何将它添加到我的iPhone应用程序中 这是我们的新造型。它是默认的ios7ui元素。在您的屏幕截图中,“设置个人资料照片”部分由行动表的标题设置 initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles: 在iOS6中,它看起来是这样的: - (void)iWantToShowAnActionShe

下面的“设置个人资料照片”下拉菜单是自定义UI元素还是默认元素?如果它是默认的,我将如何将它添加到我的iPhone应用程序中

这是我们的新造型。它是默认的ios7ui元素。在您的屏幕截图中,“设置个人资料照片”部分由行动表的
标题设置

initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:

在iOS6中,它看起来是这样的:

 - (void)iWantToShowAnActionSheet
{
  UIActionSheet* sheet = [[UIActionSheet alloc] initWithTitle:@"Set profile photo"
                            delegate:self
                            cancelButtonTitle:@"Cancel"
                            destructiveButtonTitle:nil
                            otherButtonTitles:@"Choose existing photo",@"Take new photo"];
  [sheet showInView:self.view];//example for using it in viewcontroller.
} 

来源:

这是新的外观。它是默认的ios7ui元素。在您的屏幕截图中,“设置个人资料照片”部分由行动表的
标题设置

initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:

在iOS6中,它看起来是这样的:

 - (void)iWantToShowAnActionSheet
{
  UIActionSheet* sheet = [[UIActionSheet alloc] initWithTitle:@"Set profile photo"
                            delegate:self
                            cancelButtonTitle:@"Cancel"
                            destructiveButtonTitle:nil
                            otherButtonTitles:@"Choose existing photo",@"Take new photo"];
  [sheet showInView:self.view];//example for using it in viewcontroller.
} 

来源:

这是一份行动表

文件如下:

基本上它是这样工作的:

 - (void)iWantToShowAnActionSheet
{
  UIActionSheet* sheet = [[UIActionSheet alloc] initWithTitle:@"Set profile photo"
                            delegate:self
                            cancelButtonTitle:@"Cancel"
                            destructiveButtonTitle:nil
                            otherButtonTitles:@"Choose existing photo",@"Take new photo"];
  [sheet showInView:self.view];//example for using it in viewcontroller.
} 
要了解其他显示方式,请查看“展示行动表”下的演示(顶部提供的链接)

这是一个UIActionSheet

文件如下:

基本上它是这样工作的:

 - (void)iWantToShowAnActionSheet
{
  UIActionSheet* sheet = [[UIActionSheet alloc] initWithTitle:@"Set profile photo"
                            delegate:self
                            cancelButtonTitle:@"Cancel"
                            destructiveButtonTitle:nil
                            otherButtonTitles:@"Choose existing photo",@"Take new photo"];
  [sheet showInView:self.view];//example for using it in viewcontroller.
} 
对于其他显示方式,请查看“展示行动表”下的演示(顶部提供的链接)

initWithTitle:@“设置个人资料照片”
,以完全匹配问题中的屏幕截图,尽管此答案与我的基本相同…
initWithTitle:@“设置个人资料照片”
以完全匹配问题中的屏幕截图,尽管此答案与我的答案基本相同。。。