简体   繁体   中英

I can not drag the UISegment to my Controller's NavigationBar in Storyboard

I got an issue, I can not drag a UISegmentControl to my Controller's NavigationBar, someone can help me?

Step 1:

在此处输入图片说明

Step 2:

在此处输入图片说明

Why I can not drag the UISegment to my navigation Bar?


EDIT

This is the Document Outline of my Controller:

在此处输入图片说明

Your Controller do not have the Navigation Item, so you can not add widget on it.

在此处输入图片说明

So you should drag the navigation item at first.

在此处输入图片说明

Then drag the UISegmentedControl.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM