I working on facebook integration in ios6.I added social,accounts frameworks and import as follows
#import "social /Social.h"
#import "accounts /Accounts.h"
but i got "social /Social.h not found" error.Any idea. Thanks in advance
Try this
#import <Social/Social.h>
Make capital letter as initial when importing iOS frameworks.
Just like this.
#import "Social/Social.h"
#import "Accounts/Accounts.h"
Related
I'm testing documenteditorcontainer from syncfusion. I've followed the start guide but I'm not having the expected rendering.
Here is the rendering
Any help would be appreciated.
Thanks
This issue occurs as DocumentEditor’s dependent component styles are not referred in styles.css file. So, please add below CSS reference in your styles.css file to resolve this issue.
Seems this information is missing in the documentation, we will refresh it.
#import '../node_modules/#syncfusion/ej2-base/styles/material.css';
#import '../node_modules/#syncfusion/ej2-buttons/styles/material.css';
#import '../node_modules/#syncfusion/ej2-inputs/styles/material.css';
#import '../node_modules/#syncfusion/ej2-popups/styles/material.css';
#import '../node_modules/#syncfusion/ej2-lists/styles/material.css';
#import '../node_modules/#syncfusion/ej2-navigations/styles/material.css';
#import '../node_modules/#syncfusion/ej2-splitbuttons/styles/material.css';
#import '../node_modules/#syncfusion/ej2-dropdowns/styles/material.css';
#import '../node_modules/#syncfusion/ej2-angular-documenteditor/styles/material.css';
Note: I work for Syncfusion.
I'm trying to import my speech recognition framework into my project. Sadly my project is in Swift and speech rec is in objc. I don't see a problem with this. I have created a bridging header file before importing the framework and compiled to make sure it has no errors. Then I dragged the framework into my project. Got a successful compile again. Now I type this in my header file:
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import "SpeechKit/SpeechKit.h"
#endif
And then I get the error: "SpeechKit/SpeechKit.h" file not found
I have tried reimporting the framework. Deleting and making a new header file etc. Nothing seems to work. I don't get why it's not picking up the header files from the framework.
Does anyone have any ideas? All help would be greatly appreciated.
Thank you so much.
Try #import "SpeechKit.h" or #import <SpeechKit/SpeechKit.h> instead #import "SpeechKit/SpeechKit.h"
use #import <SpeechKit/SpeechKit.h> in bridging header and don't forget to place import SpeechKit in your swift file
When I create an iOS project,and "Build Phases -> Link binary with Libraries", I add the AVFoundation.framework lib and use #import "<AVFoundation/AVFoundation.h>". I get a compilation error:
"AVFoundation/AVFoundation.h file not found".
Here's my code:
#import <UIKit/UIKit.h>
#import "<AVFoundation/AVFoundation.h>"
How can I resolve this?
Use
#import <AVFoundation/AVFoundation.h>
There is only two types of #import statements:
#import <file.h>
and
#import "file.h"
There is no type like : #import "<file.h>" you are making mistake here: #import "<AVFoundation/AVFoundation.h>"
In general the #import "QuartzCore/QuartzCore.h" form is "find my very
own header, if you can't find it look for a system header", and the
form is "find a system header". In theory
the locations are compiler defined and they could be implemented
differently on a given platform, but I haven't run into a C compiler
that does anything different.
Reference: SO
You have extra quotes.
Use
#import <AVFoundation/AVFoundation.h>
not
#import "<AVFoundation/AVFoundation.h>"
please do not use
#import "<AVFoundation/AVFoundation.h>"
use this
#import <AVFoundation/AVFoundation.h>
we can import two type of library
first one is System Library which are developed by Apple developer
are imported as
#import <Library.h>
Second one is Classes implemented by Application developer
like as
#import "Library.h"
I am trying to get up and running with ASIHTTPRequest. I have followed the instructions as per http://allseeing-i.com/ASIHTTPRequest/Setup-instructions, having added the classes to a new group called ASIHTTPRequest and added the binaries. However when I try to add the imports, I get import errors on the .m files:
#import "ASIAuthenticationDialog.h"
#import "ASIAuthenticationDialog.m"
#import "Reachability.h"
#import "Reachability.m"
Any help would be much appreciated, I am new to Objective-C.
You do not import .m files only header files .h
So I suspect this to be a project problem as opposed to a code problem. I am still relatively new to xcode. I am trying to access the ABAddressBook libraries and have included them in the project alright.
![alt text][1][1]: http://i.stack.imgur.com/lBaW0.png
Now when I try to say import "ABAddressBook.h", it doesn't know what I am talking about. Is there anything else I need to do to get that set up? Thanks!
Try
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
You have to import two frameworks one is the
AddressBook and the other is AddressBookUI and then you have to import those files into your viewController subclass file and you are done