Vote count:
1
I'm currently trying to implement this GitHub: http://ift.tt/1sGr1HL I have followed the instructions like so:
Add RSBarcodes_Swift as a submodule by opening the Terminal, cd-ing into your top-level project directory, and entering the command git submodule add http://ift.tt/1tpbjOz
Added with no errors
Open the RSBarcodes_Swift folder, and drag RSBarcodes.xcodeproj into the file navigator of your app project.
I'm assuming he meant project navigator here, which I did
In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar. Ensure that the deployment target of RSBarcodes.framework matches that of the application target.
Yup, It is set to 7.1
In the tab bar at the top of that window, open the "Build Phases" panel. Expand the "Target Dependencies" group, and add RSBarcodes.framework.
Coudn't add 'RSBarcodes.framework' as it only gave me the option for 'RSBarcodes' Which I added as assumed the .framework was added wrongly
Click on the + button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add RSBarcodes.framework.
Added, No Problems
The next set of instructions are:
Place an UIViewController in storyboard and set RSCodeReaderViewController based class as its custom class and it almost there, focus mark layer and corners layer is already there working for you. There are to handlers, one for the single tap on the screen along with the focus mark and the other is detected objects handler, which all detected will come to you. Set them up in viewDidLoad() or some place more suitable:
override func viewDidLoad() {
super.viewDidLoad()
self.focusMarkLayer.strokeColor = UIColor.redColor().CGColor
self.cornersLayer.strokeColor = UIColor.yellowColor().CGColor
self.tapHandler = { point in
println(point)
}
self.barcodesHandler = { barcodes in
for barcode in barcodes {
println(barcode)
}
}
}
I have followed those, the only thing that I did differently was add a UIButton to the main ViewController and add performSegueWithIdentifier to show the RSCodeReaderViewController as it was inaccessible
I have uploaded the project here: http://ift.tt/1ytjvmc if you would like to see it. Could someone please tell me what is going on or if you encounter any errors?
1 Answer
Vote count:
-2
Using the SELECT Command SELECT is the SQL command used to retrieve records. This command syntax can be totally simplistic or very complicated. As you become more comfortable with database programming, you will learn to enhance your SELECT statements, ultimately making your database do as much work as possible and not overworking your programming language of choice.
Swift: Build Failed but no errors
Aucun commentaire:
Enregistrer un commentaire