Unable to create outlet using trackpad
I found the solution :


we need to 'create' right click on trackpad first. This is done by Preferences>Trackpad> Point&amp;Click> Secondary click> click in bottom right corner
once step one is done, go to xcode. hover the mouse over the view for which you wish to create an action or outlet, do not tap, press right click on the trackpad with one hand and drag the view with other hand (without tapping).


That's all is required.