Thursday, 2 March 2017

Tab Bar Controller In Swift iOS

OverView:-
The Tab Bar interface is helpful in situation where you want  to provide different perspective on the same set of data or in situation, where you want to or in situation where we want to provides your application long functional lines. The key component of a tab bar interface is the present of tab bar view along the bottom of the screen. This view is used to initiate the navigation bar  b/w your appilaction different modes and can also provide the information about the state of each mode
The manager for a tab bar interfaces is a tab bar controller objects. The tab bar controller create and manage the tab bar view and also manage the view controller that provided  the content view for each mode. Every contents of view controller is design as the view controller for one of the tabs in the tab bar view. When a tab is pressed by the user, the tab bar controller object select the tab and display the view associat with correspond content view controller .
 Tab bar controller has its own container view, which encompass all of the other views, including the tab bar view. The custom is  provided by the view controller of the selected tab.
Getting Start:-
Open a xcode  and create a new project. Use the Single View Application as starting point :-
1.      Create Single View Application and Click on  the Next button
2.      Give the Product name  and click  on the next button
3.      After that click  on the create button
After Xcode  has created the project
·         The new project consist of two classes AppDelegate , ViewController and main.storyboard file.
·         Click Main.Storyboard in the project navigator to open it in the Interface Builder editor.
·         Select the ViewController and goto Editor click on the  editor


·         Then goto the Embed in And Seclect the tab bar Controller

·         The you will see that in your project embedded a tab bar controller like this


·         In your project of the Main.Storyboard file you will see that add a new  tabbar controller and your main .Storyboard file look  like this your project inter face builder
if you want embedded  more ViewController with this tab bar controller then you select the ViewController from the object library and Drag the ViewController in the interface builder

·         Now you see that in your project have  two  ViewController in the Main.StoryBoard
·         If you want join  second ViewController with the tab bar controller then do this  Control + Drag on the secondViewController then you see a pop view like this





Then you select the view controller from this view
Now then you see after complete this job in your project  a tab bar controller connect with your secondViewController.



·         Now you can run your project but how to decide that , which View controller is first view Controller and which Second View Controller
·         Now you drag uilabel drag from the object library set in the first and second View Controller
·         You can write on this label as like for First View Controller “ This is my fist View Controller” and same as for second View Controller name “This is my second View Controller”.
·         And set label color White And you want change the view controller background color
·         then select the view Controller
·         and go to attribute inspector select  Backgroung color
·          set the background color
·         Now, run your project


Now click on the simulator second item you see  the second view Controller .


If you are, looking to Develop and design for your project then feel free to contact us at any time
Call Us- +91 9910781148, +1 8033353593
Email: company@tecorb.com
Skype- tecorb
“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”

Monday, 27 February 2017

Google Map Integration in Swift IOS


OverView:-
Google Map Integration in iOS and SDK, Google Maps is a web mapping service developed by Google. It offer satellite imagery, street maps 360 degree panoramic views of streets, real- time traffic condition, and route planning for travelling by foot, car, cycle, or public transportation
Working with maps in consists of an entire programming as there are tons of things that a developer can do with them. From just presenting a location on a map to drawing a journey’s route with intermediate positions, or even exploiting a map’s possibilities in totally different approach, dealing with all these undoubtly may be a great experience that leads to superb results.
Getting Start
Step 1:- Get the latest version of Xcode
Step 2:- Install the SDK
Create a Podfile for the Google Maps SDK for IOS and use it to install the API and its dependencies:
  1. If you do not have an Xcode project yet, create one now and save it to your local machine. (If you are new to iOS development, create a Single View Application.)
  1. Create a file named Podfile in your project directory. This file defines your project’s dependencies.
  1. Edit the Podfile and add your dependencies. which includes the dependencies you need for the Google Maps SDK for iOS and Places API for iOS (optional):
  1. Add this pod in Podfile in your application
  2.            do
                       pod ‘GoogleMaps’
                       pod ‘GooglePlaces’
                    end
 6. Save the podfile
7.Open a terminal and go to the directory containing the Podfil
 8. Cd <path-to- project>
 9. Run pod install command
     Pod install
10. Close Xcode, and then open (double-click) your project’s .xcworkspace file to launch Xcode. From this time onwards, you must use the .xcworkspace file to open the project.
Step 3:- Get an API key
1.Go to the Google API Console.
2.Create or select a project.
3.Click Continue to enable the Google Maps SDK for iOS.
4. On the Credentials page, get an API key.
Note: If you have a key with iOS restrictions, you can use that key. You can use the same key with any of your iOS apps within the same project.
5. From the dialog displaying the API key, select Restrict key to set an iOS restriction on the API key.
6.In the Restrictions section, select iOS applications, then enter your app’s bundle identifier. For example: example.hellomap.
you get the bundle identifier from your project go to project then click on the project name folder then select project-> target-> general-> identity->bundle identifier -> copy your that bundle identifier then paste that identifier those restriction section
  1. Click Save.
Your new iOS-restricted API key appears in the list of API keys for your project. An API key is a string of characters, something like this:
AIzaSyBdVl-cTICSwYKrZ95SuvNw7dbMuDt1KG0
Step 4:- Add API key in your application
Add your API key to your AppDelegate.swift
  1. Import GoogleMaps
  2. Add the following to your application(_:didFinishLaunchingWithOptions:) method,
replacing YOUR_API_KEY with your API key:
GMSServices.provideAPIKey(“YOUR_API_KEY ”)
  1. if you are also using the Places API
GMSPlacesClient.provideAPIKey(“YOUR_API_KEY ”)
 Step 5:- ADD Map
Now, add or update a few methods inside your app’s default ViewController to create and initialize an instance of GMSMapView.
import UIKIT
import GoogleMaps
class GoogleMapViewController: UIViewController{
override fun loadView(){
//Mark:- Create a GMSCameraPosition there tells the map to displaying the Map
// coordinate set you want suppose Coordinate latitude -33.86, longitude – 151.20 at zoom level 10.
let camera = GMsCameraPosition.Camera(withLatitude: -33.86, longitude: 151.20, zoom: 10.0)
let mapView = GMSMapView.map(withFrameCGRect.Zero, camera: camera)
// Mark:- Create a Marker in the Centre of the map you are designing
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: -33.86, longitude: 151.20)
marker.tittle = “Sydney”
marker.snippet = “Australia”
marker.map = mapView
  }
}
Step 6:- Declare the URL scheme used by API
Application must be declare the URL schemes that they intend to open, by specifying the schemes in the app’s Info.plist file.
To declare the URL schemes used by the Google Maps SDK for iOS add the following lines to your Info.plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>googlechromes</string>
<string>comgooglemaps</string>
</array>
Step 7:- Run your project
 IOS apps development company

If you are, looking to Develop and design for your project then feel free to contact us at any time
Call Us- +91 9910781148, +1 8033353593
Email: company@tecorb.com
Skype- tecorb
“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”


Wednesday, 15 February 2017

Swift Tips for those Getting Started

Start developing iOS Apps (Swift) is that the excellent start line for learning to make apps that runs on iPhone and iPad. Get through this set of progressive lessons as a target-hunting introduction to putting together your initial app-including the tools, major ideas, and best practices that may ease your path.
Each chapter contains a tutorial and also the abstract info you wish to complete it. The teachings hinge on one another, walking you thru a stepwise method of making an easy and Real-world iOS app.
As you create your means through the teachings and build the app, you’ll study ideas in iOS app development, gain a deeper understanding of the
Swift programing language, and inform yourself with the numerous valuable options of Xcode, Apple’s integrated development surroundings (IDE).

Since its 1.0 release in September 2014, Savvy Apps' development team has been experimenting with and using Swift in iOS projects.
Though the majority of our current projects remain in OC (Objective-C) because of the relative youth of Swift, we have started coding new projects in Swift since its 2.0 release in September 2015.

Swift Tips for Those Getting Started
Clean Up Asynchronous Code
Swift had got a neat syntax for writing off the completion functions. We had completion blocks in the Objective-C, but they were delayed in the language’s development process.

Control Access to Our Code
We should always use the appropriate access control modifier to encapsulate the code. Good encapsulation helps us to understand how pieces of code interact with each other.

Perform experiment and validation
Playground is an interactive and easy coding environment in Swift. We can also create playgrounds in order to test and validate the ideas, learn Swift and share concepts to each other.
Leave NSNumber Behind
Here the Objective-C uses the C primitives for numbers, also the Foundation Objective-C API provides the NSNumber type for boxing and unboxing the primitives as well.  We can actually add Int / Float / AnyObject values for Swift dictionaries and array.
The most common Swift type that are used instead of NSNumber:
Swift: Objective-C
Int: [NSNumber integerValue]
UInt: [NSNumber unsignedIntegerValue]
Float: [NSNumber floatValue]
Bool: [NSNumber boolValue]
Double: [NSNumber doubleValue]

Download
To download the latest version of Xcode

-Open the App Store app on your Mac (by default it’s in the Dock).
-In the SF (search field) in the top-right corner, type Xcode and press the Return key.
-The Xcode app shows up as the first search result.
-Click Get and then click Install App.
-Enter your Apple ID and password when prompted.
-Xcode is download into your Application directory.
Conclusion

Here in Swift we had used may update classes and methods from time to time. We need to choose the correct development methodology so that we can develop more secure and flexible application.
As the Apple CEO said, “The sidelines are not where you want to live your life. The world needs you in the arena.” Its’s just the beginning for better future and technology advancement.
  We TecOrb Technologies Pvt Lmt is the best company for mobile and web application development. If you want to developed any application for mobile and web and you have any query regarding this then you contact us by our website http://tecorb.com and you also call us
Call Us- +91 9910781148, +1 8033353593
Email: company@tecorb.com
Skype- tecorb
“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”





Tuesday, 18 October 2016

TecOrb Technologies- IOS Application Development Company in USA, India, UK

Get an Understanding concerning the Abundant Opportunities

 They should not falter in being attentive of the growing mobile apps market and also the latest tools and trends. Otherwise, it is attainable that they could encounter difficulties later, which will prevent steady growth.
Apart from that, you must want to check if you are planning to start a business that is good for your area of experience. You must also check if you have got enough resources offered in your area or field. If not, you must be willing to consider outsourcing the work

Understand the Marketplace and the New Form, plan or idea of Business Happening there


Many people have seen totally different world markets and have got some basic plan regarding what sells and what does not. But, once we point out market within the mobile app development, download the foremost successful apps and also the unsuccessful ones. Attempt to discern the common traits in them. This may help to develop a way of the existing demand and permits one to explore the world of innovative and promising ideas further ahead. For those targeting IOS app development, Apple’s cheat sheet can facilitate a good deal.

Starting an Android/ IOS Application Development Company

Once you have got determined to hold on to this business, you wish to register yourself as a developer, so that you will be able to publish your apps within the respective apps stores with a developer account. You will able to prefer the platform of your selection and fulfill the requirements to complete registration. For starters, it is always higher to start with IOS application development than Android, as iPhone users are additional doubtless to undertake new apps from new developers.

Apple Developer Programs


iPhone application developers who wish to join Apple’s program can have many benefits. First of all, they are going to reach customers all over the world, who visits the Apps Store from their iPads, Macs, iPhones, Apple Watch, Apple TV and iMessage. Secondly, developers gain access to software, in-depth beta testing tools, advanced apps capabilities etc. After building apps you are using cutting-edge Apple technologies, developers may use TestFlight Beta Testing to ask iOS users to test their apps, before being added to the App Store, therefore if there is any defect or major problem, the feedback received from testers may help developers reduces the problem.