A page-turning interface for iOS apps in Leaves Github Project xCode - xcode

I'm trying to implement leaves project link is below:
https://github.com/brow/leaves
but there are serverl errors I couldn't find out the issues that why there are so many errors
So would anyone please help me how can i solve this problem
I don't know where I'm doing mistake, I download the zip file and then extract it and run the project that's it.
I'm attaching the screenshot of the errors as well.
You can see the errors in the screenshot.

Import QuarzCore and CoreGraphics frameworks to your project.
Add this your .h file of the class that causes the errors:
#import <QuartzCore/QuartzCore.h>

Related

Issue with interacting with iPad accessory via Binding - Xamarin.iOS

I have a Barcode scanner accessory to which the iPad docks on to, hence i need to interface with the accessory to scan for barcode and use it in my application. To accomplish this, i followed the steps as enlisted here
Xamarin Hep - Link
So I went on to create a "Binding" project, added the native library i.e. ".a" file , created the APIDefinition and Structs using Sharpie and finally added the Binding project reference to my application.
In the next step, when I tried to deploy the app to iPad, encountered the error with regards to Native Linking.
In order to fix this, i mentioned the "Framework" in the LinkWith file like:
[assembly: LinkWith ("libBarCodeScannerSDK.a", SmartLink = true, ForceLoad = false, Frameworks="ExternalAccessory")]
Having done all the things stated above, I was able to deploy the app.But I am unable to make my application work with the Barcode scanner accessory. When I check the status of the scanner, its always returned as "NotConnected".
I am clueless as to how to go about debugging this issue and getting it resolved. Do appreciate, if someone can give me pointers on this.
Thanks,
Sid
most (if not all) of external accessories must set UISupportedExternalAccessoryProtocols key inside the info.plist file, see the info.plist file that the native Xcode example that came with your scanner SDK has and copy the UISupportedExternalAccessoryProtocols section to your Xamarin's app info.plist file.
Hope this helps!

Adding Parse to iOS App Errors

I'm trying to incorporate Parse into my iOS app. After adding all the Frameworks and building the app I get several error messages none being related to the code itself.
I read somewhere that you need to add the Facebook SDK to your project and I did that but it only took away 3 of the errors. Does anybody know the proper instructions on installing the Facebook SDK to your project? Perhaps I didn't add it correctly?
Thanks.
Are you using Swift?
I had the same problem and it was because the frameworks are in Obj-C.
If that's the case, you need to add a bridge header file - here's a quick overview of how to do so: http://blog.parse.com/announcements/building-apps-with-parse-and-swift/
Here's the content of my bridge header file:
#import <Parse/Parse.h>
#import <Bolts/Bolts.h>
#import <ParseUI/ParseUI.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>

How can I use Chartboost with Cocoapods in Swift?

This is my Podfile
platform :ios, 8.0
use_frameworks!
pod "ChartboostSDK"
pod "SVProgressHUD"
SVProgressHUD is being turning into a framework, but for some reason Chartboost is not.
That of course makes the import for Chartboost not working in my code.
The library ChartboostSDK is not supported for Swift directly using CocoaPods, you need to integrate it manually in the following way:
1.First, unzip the SDK package and drop the Chartboost Framework into your Xcode project. Be sure you've also linked these frameworks:
StoreKit
Foundation
CoreGraphics
UIKit
2.Then you need to add a Swift bridging header allows you to communicate with your old Objective-C classes from your Swift classes.You will need one if you plan to keep portions of your codebase in Objective-C. You can create it manually like in the following way:
Add a new file to Xcode (File > New > File), then select “Source” and click “Header File“.
Name your file “YourProjectName-Bridging-Header.h”.
Navigate to your project build settings and find the “Swift Compiler – Code Generation” section. You may find it faster to type in “Swift Compiler” into the search box to narrow down the results. Note: If you don’t have a “Swift Compiler – Code Generation” section, this means you probably don’t have any Swift classes added to your project yet. Add a Swift file, then try again.
Next to “Objective-C Bridging Header” you will need to add the name/path of your header file. If your file resides in your project’s root folder simply put the name of the header file there. Examples: “ProjectName/ProjectName-Bridging-Header.h” or simply “ProjectName-Bridging-Header.h”.
Open up your newly created bridging header and import your Objective-C classes using #import statements. Any class listed in this file will be able to be accessed from your swift classes.
You bridging header must be have inside the following lines:
#import <UIKit/UIKit.h>
#import <Chartboost/Chartboost.h>
#import <Chartboost/CBNewsfeed.h>
#import <CommonCrypto/CommonDigest.h>
#import <AdSupport/AdSupport.h>
You can read more about the next steps using Charboost in his iOS Integration help manual.
I hope this help you.

Xcode - Parse & facebook header file(SDK) error

I want to use both Parse & facebook SDK's with my app, I did everything and added every library from both Parse & facebook and edited my App Delegate file according to the docs, but I keep getting errors in my bridging-header file:
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
#import <FacebookSDK/FacebookSDK.h>
#import <Parse/Parse.h>
Error:
'FBSDKCoreKit/FBSDKCoreKit.h' file not found
The errors are not specific to any statement, I delete one and the next gets an error. This file is called "MyApp-Bridging-Header.h"
The first thing I would try is to add the AVFoundation and CoreLocation frameworks to your target. Then delete the derived data from your project by going to window-->projects. Do this then clean and build your project.
Sidenote: Make sure when you type in "#import " the FBSDKCoreKit is autofilled in after you have typed a few letters. If the framework has been added already, it should give you the option to autofill the import. If it is not added this may not show up, and if this is the case, make sure your framework is added to your project in finder.
Hope this helps!

Creating an ABPerson object

This problem is almost certainly gonna have a really simple answer, but I just can't see it. I'm programming an app for the iPhone in Xcode and I'm trying to create an instance of an ABPerson object, but can't. In my .h file, I am importing as follows:
#import <AddressBook/AddressBook.h>
#import <AddressBook/ABPerson.h>
Then when I try to create it using "ABPerson *person;", it gives the error, "Unknown type name 'ABPerson'".
I have searched the internet and there doesn't seem to be much on the use of ABPerson and where I have seen it used, they have done it like this and its worked fine.
Ultimately, I want to create a VCard containing the details of somebody which the user can then save to their phone so if you know of another way of doing this which would eliminate this problem, that would also be great.
Thanks,
Matthew
Have you added the AddressBook framework to your app? Look in XCode4, look at your project file -> Build Phases -> Link Binary with Libraries.
Try this.
#import <AddressBook/AddressBook.h>
#import <AddressBook/ABAddressBook.h>

Resources