Procedures for renaming iOS files and for renaming ios files

Source: Internet
Author: User

Procedures for renaming iOS files and for renaming ios files

Modify the class Name:

1. Double-click the selected class name in the header file: @ interface is the class name (if not selected, the rename option will be in the disable State );

2. select Edit-Refactor-Rename In the toolbar;

3. After the name is changed, preview all the changes that will occur, select the required changes, and Save the changes.

Reference: http://stackoverflow.com/questions/992381/rename-a-class-in-xcode-refactor-is-grayed-out-disabled-why


How to open a file whose file type is "renamed"

First Open "my computer", find "Tools" in the top menu bar, click "Folder Options", and click the "View" tab. drag down in advanced settings, find the option "Hide extensions of known file types" and remove the check box.
Else"

How to rename and delete files in C language?

In the <stdio. h> package, there are two functions that can meet your requirements:
Note: The files for these two function operations must be closed; otherwise, the execution will fail. If the execution fails, you can compare the values of errno to determine the cause of the failure.
Rename:
Int rename (const char * oldname, const char * newname );
Parameter description:
Oldname: original file name
Newname: New File Name (you can specify a Global Path to move the file)
Return Value:
0: Successful
-1: Failed. Set the global variable errno to the error code.

Delete:
Int remove (const char * filename );
Parameter description:
Filename: name of the file to be deleted
Return Value:
0: Successful
-1: Failed. Set the global variable errno to the error code.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.