Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Objective-C Protocol in new version of XCode Version 6.0.1 (6A317) for iOS

In previous versions when you press New File, in iOS --> Cocoa Touch --> there was Objective-C protocol, but now I can't find it there!?

like image 581
Renat Gatin Avatar asked Oct 12 '14 00:10

Renat Gatin


People also ask

What is nsobjectprotocol?

The group of methods that are fundamental to all Objective-C objects.

What is protocol in Objective-C with example?

Protocols are implemented in the classes conforming to the protocol. A simple example would be a network URL handling class, it will have a protocol with methods like processCompleted delegate method that intimates the calling class once the network URL fetching operation is over. A syntax of protocol is shown below.


1 Answers

Familiar problem after update.

Step one: press CMD+N and choose Objective-C File in menu

enter image description here

Step two: press Next and choose file type. enter image description here

like image 51
Oleg Sobolev Avatar answered Nov 14 '22 23:11

Oleg Sobolev