Press "Enter" to skip to content

Learn To Build A Financial App in iOS AddingChartsRef

Learn To Build A Financial App in iOS AddingChartsRef
Learn To Build A Financial App in iOS AddingChartsRef

pLearn To Build A Financial App in iOS : AddingChartsRefp pwelcome to projects in iOS from edgy onyx my name is Brett were going to start off by getting the charts application and I am going to you can actually type in Daniel Gandy and you can do get hub because thats where this is located and hit enter and then youll get something like this Daniel genndy charts which is on github so Im going to click here and this is the application that we want to use what you can do is download the zip file of this program so over here you have clone and download you can download a zip of this you get the zip on your desktop then unzip it and now were going to see what that looks like okay so this is the charts master that Ive unzip what were gonna do is theres a folder called charts were going to use this charts project were gonna drop it into our project and thats going to create a reference to the charts application so what were gonna do now is create our project in Xcode then were going to integrate with this charts project as well so in Xcode Im gonna do new and then project what were gonna do is create a tabbed project and I am just going to call this Finance PL its gonna be Swift the language were gonna be universal and Ill give this a location so Ill just choose this location all right now Ive got my project created and what I want to do is drag in that project from the zip so Im going to bring up a Finder just kind of shrink this down a little bit so heres the project file and Im gonna drag that over here now youll notice Ive got a full project reference so I can click and open this and theres the complete reference and what I want to do now is click on my project which Im calling finance PL and Im gonna see if I can drag the over a little bit I guess 9 what I want to do is click on targets and lets see go down to where it has embedded binaries and Im gonna click the plus so this right here is kind of cramping it a little bit targets is gonna be in this left pane over here and theres just going to be the one which is also going to be called the name of my app and then Im on the general tab of the target so Ill click the plus so youll notice several things happen here several things open up what I want is charts I can just choose it right here you can see Ive got two charts projects in here thats fine Im just gonna choose the one thats under my app here I want the iOS framework not any of these others Ill click Add we also get the linked framework now what I want to do is build make sure everything is building okay and without any problems okay so this is building build succeeded now were going to actually add a little bit of code so we can see this work make sure everything is working okay so Im gonna go into my first scene my first view Im gonna look for a view in the objects library and lets see itll be down at the bottom just want a regular view this one here so that what Im doing is actually going to test to make sure my charts are wired up and theyre ready to go now theres a few things I want to change here we know we have three different scenes we have the overview the transactions and the add scene so Im just gonna change these we have overview and I am gonna change it here as well overview this one can be transactions or transaction Im gonna copy this and that there and we need another view controller so I need to add a file for that view controller that were about to add so thats gonna be cocoa touch and I want a UI view controller this is gonna be add view controller next create Ill just drag that here and we can drag a view controller underneath this tab controller so Ill scroll to the top and we have our view controller here so Ill just drop that and what I want to do is click this view controller icon and Im going to associate this to our class which is for the add view controller so lets see we have the add view controller we want to change these names so theyll match we dont have a second view controller anymore this is gonna be the transaction view controller and lets see here I want to change the name of this to something more meaningful so Im in the identity inspector actually is a hash abuse inspector Im going to call this transaction Ill go to the first scene and I can call this overview so thats in the trendy attributes inspector alright so we have this scene here or this view and youll notice its highlighted here I should be able to associate this with a chart view or actually a line chart view and if I go over here into my identity inspector youll notice Ive got the class association Im gonna do line chart view so that is associated now Im going to connect it into my view controller so lets see here this is I think I have to compile this or everything gets associated Im gonna go ahead and build all right and see its still not doing anything so Ill just manually go and find it there we are so Im going to control drag lets see here control drag thats not working so if I look make sure so this hasnt been updated yet is the problem Im going to go into overview here and close this now I should be able to drag from here to here Im just gonna call this line chart view so now we have a reference to it and lets see what is complaining about undeclared line chart view we need to import charts right there so I am in my over view controller and I am going to build now what were gonna do is next were going to grab some code from the github website some of the sample code were going to put it in and actually get these charts or this chart up and running and well go from there and start continuing building out the applicationp

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *