Reputation:
i have added one .h and .c file ,but i want to call the function which is in .c file from viewController?any help?if i add .h file and call that function linker error comes?
Upvotes: 0
Views: 140
Reputation: 95499
You need to add the ".c" file to your Xcode project, and you need to make sure that it is checked off in Xcode. If you make sure it is checked, then the source file should be linked into your project correctly.
Upvotes: 0