ios, swift, iphone development tutorials, x-code development

Powered by Blogger.

Main Menu

create a TableView in ios swift xcode

create a TableView in ios swift xcode It is very simple to create a table view in ios swift.But first you know that how to create a ne...

Sunday, 20 May 2018

create a TableView in ios swift xcode

create a TableView in ios swift xcode

It is very simple to create a table view in ios swift.But first you know that how to create a new project in X-Code if you dont know then just see the last post.

before creating a tableView we learn what is table view and why we used it?

Table is used to show the data in sequential way.It gives us a vertically scroll view which consist of a number of cells(generally reusable cells). In table view some majorly  func(Function) are must used.
              1) NUMBER OF ROWS IN SECTION its stand for row in table how many rows are created in tableVIew.
                              func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
                                             return Code

               2) CELL FOR ROW AT INDEXPATH  this function is used to display the data in cell indexpath.

                func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell 
                                 return code
for better experience we can do it practically with example :

1. First create a x-code project.
2. after creating a project select MAIN.storyboard(its use for creating user interfaces) and select Show the object library which is shown in the image.
Show the object library
Show the object library 

3. And search the UITableVIew and drag and drop in the View Controller Scene.
4. After taking the tableView first we set the constraints for auto set on all iphones.

Add Constraints
Add Constraints
5. Now set the Prototype Cell 1.
set prototype cell
set prototype cell
6. create a cocoa Touch Class file gives name which you want to give example like:- TableViewCell.swift.
 cocoa Touch Class
 cocoa Touch Class
7. Select the subclass of UITableViewCell and click next.

subclass of UITableViewCell
subclass of UITableViewCell
8. select the Identity Inspector and set the custom class as your subclass of UITableViewCell name.
Identity Inspector
Identity Inspector

9. Now drag and drop the the lable in prototype cell from object library. for showing the data.

Drag and Drop Lable
Drag and Drop Lable
10. After drag and drop the lable set the constraints of lable in prototype cell.
11. create outlet for the lable in your Subclass of uitable view cell.

12. Code of TableViewCell(subclass of UITableViewCell).

//  TableViewCell.swift
//  TableViewExample
//  Created by MICROLET on 20/05/18.
//  Copyright © 2018 MICROLET. All rights reserved.

import UIKit

class TableViewCell: UITableViewCell {

    @IBOutlet weak var lableName: UILabel!
    override func awakeFromNib() {
        // Initialization code

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state


13. code for the table view functions is:-

//  ViewController.swift
//  TableViewExample
//  Created by MICROLET on 18/05/18.
//  Copyright © 2018 MICROLET. All rights reserved.

import UIKit

class ViewController: UIViewControllerUITableViewDelegateUITableViewDataSource {
    var names = ["Aviansh""Kapil""Muskan""Renu""Nisha""Lalit""Tammy""Jully"]
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return names.count
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell: TableViewCell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) asTableViewCell
        cell.lableName.text = self.names[indexPath.row]
        return cell

    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.

    override func didReceiveMemoryWarning() {
        // Dispose of any resources that can be recreated.


14. After writing this code just build and run the app in your simulator and your output is boomb..!!

Output gadget simulator
Thanks for reading this post Hope you enjoyed this post and know abot how to create the TableView in IOS SWIFT X-CODE.


Thursday, 17 May 2018

how to create a simple project in iOS swift

Today we learn about how to create a simple project in swift 

1) X-CODE is installed in your Mac.
2) Select the File option then a menu list pop-up and select new -> Select Project (see in this picture for better understand)
Select File option for new project

 3) After selecting this a pop-up view will appear see image which is below this line

Choose a template for your new project

4) After choose this template for new project then select single view application and click next then again a pop-up view will appear see the next image

Choose option for your new project

5) Choose option for your new project in this pop-up first give a name to project (for example MyFirstApp).

6) Select language is swift and hit next button.
7) After hitting the next button again a pop-up view will appear.This window is show the placing address where we want to store our project. so where you want to store your project Choose your location and hit the button

Project location where our project is stored

8) After click choose then our project is saved our location. After saving the project our project is created and the project is show just like this image 

Project is created succefullyy

Thursday, 3 May 2018

How can we get 4000 hours and 1000 subscriber in 12 months

How can we get 4000 watching hours and 1000 subscriber in 12 months

Dosto aj hum dekhenge ki kese hum 12 months main 4000 watching time get kar skte hai or 1000 subscriber apne  Youtube channel pe la skte hai..!!

Dost ye krna bhut hi aasan trika hai. or bhut hi kam time period m hum 4000 watching hours and 1000 subscriber youtube pe la skte hai. Dost esme aapko kuch nahi krna bus aapko google or youtube pe chal rhe trend fashion k bare m pta lgana hai ki aj k time kya chal rha hai.Basically krna kuch nahi 
nahi hai aapko kewal aapke interest wale topic pe jo sabse jyada popular cheeze h unka pta krna hai.

FOR EXAMPLE:- jese ki ye abhi youtube ki nai policy aayi hai. 12 months main 4000 watching hours and 1000 subscriber. pehle 10,000 views pe adsense mil jata tha.

Abhi ap esi tarike ko use le skte hai. Idea bhale hi kisi ka ho its doesn't metter but the way of explanation is different from idea and writting content are also different from someone else content.
if  we copy the content of other's blogs and website then the google adsense was tag that content as copyright content.

To dosto ap logo ko ek idea mil gaya ki kese hum watching hours bdha skte hai apne youtube pe.Aese but se tarike hai ap unhe search kijiye or un per video create kijiye apne hisab se aapko koi copyright content nahi aayega or aapka youtube channel ko watching hours milenge subscriber milenge or aapko esse achi earning hogi.

THANKS..! For reading this artical. I hope you enjoyed this artical.

Sunday, 18 February 2018

Android Studio m hello world app bnane ka aasan trika sikhe

Android Studio m hello world app bnane ka aasan trika sikhe

To dosto aj hum dekhenge ki android studio m hello world ka pehla app kese bnate hai.
Dosto aap soch rhe honge ki ye bhut hi hard to aesa kuch nahi hai Android studio m app bnana 
bhut hi aasan hai.Aao chalo dekhte hai kese bnate h android m application.

Jesa ki humne last tutorial m humne dekha tha ki project kese create krte hai. so aj hum uske aage 
dekhenge ki app finally hum bnate kese hai.

To dosto sabse pehle to aap apna android studio ka project khol le.


Jesa ki aap dekh rhe h yha humne Activity_main.xml file ki image dali hai.Dosto Iska
code bhi niche m daal rha hu taki aapko smjhne m aasani rhe.


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout    xmlns:android="" 
     android:text="Hello world this is my first app in android"

Eske ander sabse pehle btaya gya hai ki xml version konsa use ho rha hai android studio m hmare.uske baad 
<LinearLayout> jo ki layout ka kis tarah se show krana hai wo btata hai. wese hi or bhi bhut se hote hai. per hum 
basically LINEARLAYOUT or RELATIVELAYOUT ko hi use m lete hai.
uske baad Linear Layout ki height or width set krte hai ki hmare layout puri screen pe show honi chahiye ya nahi 
wo hmare pe depend krta hai hum use kesa show krwana chahte hai.
Agr hum usme color or dena chahte hai background m to background color name ki properties ko use lenge.

Ab aate hai TextView m jo ki hmare text ko application m show krane k liye use aata hai.Esme bhi hum dekhenge ki 
eski height or width kya rkhni humne esme eski Height rkhi hai "WRAP CONTENT" eska mtalab ye hai ki eski 
size utni hogi jitni mare text ki.

Fir humne "Android:text" attribute ko use liya hai jo ki hmare message ko show krane m use aayega.Or fir humne 
esko layout se topMargine diya.Ki layout ki top se kitna margine rhega.Or Last m text ko size di hai.

Ab es layout ko show krane k liye koi na koi model class ki jrurt hoti hai jo ki esko show kraye.To eske liye hum 
MainActivity,java(Class) ko use kr rhe hai.Eska code niche diya gya hai or smjhaya gaya hai. Code:- 

package com.example.avi.practiceapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override    protected void onCreate(Bundle savedInstanceState) {

Jesa ki aap code dekh pa rhe hai.sme sabse pehle kuch files import ki gayi hai.Ye android studio ki by default libaries hai jo
android studio khud hi project create krne k sath sath import kr leta hai.Eske baad hum aate hai 
"public class MainActivity extends AppCompatActivity".MainActivity.class

jo ki extend kr rhi hai AppcompactActivity se agr es inherit nahi krenge to humare app m 
 ERROR aayegi R(resource) ki so hume AppCompactActivity ko extend krna jruri hai.
onCreate jo ki ek method hai basically koi bhi android k project ka.Jisme hum layout ko 
set krte hai. setContentView.Layout jo ki humari UI(User Interface) hai, ki user ko 
App ka front view kesa dikhana hai.or jesa ki hum sabhi jante hai koi bhi view ko show krane 
k piche koi na koi Model class ka hath hota hai. so Usi trh hum ese bhi ek Model class ka name 
de skte kyoki Layout ko show krane k liye hum es class ki jrurat to pdegi hi pdegi.

Hamara Application bnane k baad kesa show hoga uska video niche diya gaya hai.TAki aapko ek idea
lag jaye ki application banne k baad kya output degi.



Thursday, 15 February 2018

how to create a simple hello world app in android studio | simple hello world app android studio m kese bnaye

Today we learn about how to create a simple hello world app in android application in hinglish language.

To dost aj k es tutorial m hum dekhenge ki ek basic simple hello world application kese bnayi jati android studio m. To aao chalo dekhte hai.

Sabse pehle to hum new project create kr lete h.Agr nahi pta to chalo dekhte h h niche di gyi image ke ander
for creating a new project in android studio

Image for creating a new project in android studio

Ab es image k ander hum New pe pehle click krenge then New project wale option pe click krenge fir hmare samne jo next screen open hogi wo kuch es tarah se hogi dekhte hai..

create Android Project

                                                                           create Android Project

Es picture m humne jesa ki simple My Application name diya hai wese hi aap kuch bhi name de skte hai.Name dene k baad hum NEXT button pe click krenge or hmare samne ek or new dailog box open hoga jo ki aapko next image m show ho rha hai niche ki taraf.

Target Android Devices

Target Android Devices

Es image k ander jesa ki aap dekh pa rhe h ki ye kh rha hai Target Android Devices eska simple sa ye matlab hai ki aap apna target device jo ap dena chahte hai wo select kr le. jese API 19,API 21,API 23 jo bhi aapki requirement hai uske hisab se or NEXT button pe click kre.Click krne k baad aapke samne es trh ki screen khulegi jo ki niche di gyi image m display ho rha hai.

Add an Activity to Mobile

                                                                                      Add an Activity on Mobile

Es image k ander aap dekh rhe hai different-different type ki Activities show ho rhi hai, To hume esme se EMPTY ACTIVITY ko select krna or NEXT pe click krna hai or fir last jo finish dailog screen khulegi wo es tarah se hogi jo ki niche di gayi image m btaya gya hai.

Configure Activity

Configure Activity 

Es tarah se Configure Activity pe aane k baad hum FINISH  button pe click krenge or hmare samne hmara project create ho jayega..Project create hone m 2-3 minutes lega.

Thanks for watching next tutorial m hum hello world ka sample app kese bnate h wo dekhenge.

android studio 2.2,android ide,android developer studio,android studio for windows ,google android studio,android studio sdk,android studio for android,android studio app development,android studio java,android studio project
latest android studio,using android studio,app kaise banaye ,mobile app kaise banaye,android app kaise banaye ,
app kaise banate hai,android apps kaise banaye,app kaise banaye in hindi

Wednesday, 7 February 2018

A project report format for the SAD REPORT, SEMINAR REPORT

Submitted to the  University Name
Partial Fulfillment of the requirement for the degree of(example)

Submitted to
 University Name

                                 Guide By                                                                    Submitted By                                                                
           <Guide Name>                       <Name of Students>


your college name



This is to certify that the present SAD Report “Title” is submitted by <Students Name>  to  YOUR COLLEGE NAME  for DGREE NAME. They have completed this work under my supervision and no part of this SAD report has been submitted for the issue of any other degree or diploma.
We recommend that this may be accepted for the issue of DGREE NAME.

(Principal)                          (Head of Department)                (Designation)        


Exchange of ideas generates the new object to work in better way whenever a person is helped and cooperated by others his heart is bound to pay gratitude and obligation to them. To develop a project’s SAD Report is not a one man show. It is essentially a collective work, where every step taken with all precautions and care. Therefore first duty is to thanks all people who took pain in completing this project.
Firstly we thank <Guide Name>, who gave us inspiration to do work in this field and gave us his precious time whenever needed. Thank may be matter of merely formality but with us it is expression of heartfelt gratitude to our project’s SAD Report supervision. We are highly indebted for his gestures. We are also thankful to HOD, Your Department Name and faculty members for invaluable suggestions and boosting confidence to make this successful. We also thank our class fellows and friends, who helped us a lot during our project work.

<Students Name>

                                                     TABLE OF CONTENTS
1. Introduction
      1.1   Overview
      1.2    Project objection
      1.3    Project scope
2. Oraganization Overview
3. System Study
      3.1       Need
      3.2       Project concept & features
      3.3       Existing System
      3.4       Proposed System
      3.5       Feasibility Study
      3.5.1    Economics
      3.5.2    Technical
      3.5.3    Operational
4. Cost benefit analysis
5. System analysis
6. General Description
7. Data flow Diagram
E-R diagram
8. System Design
      8.1   Input design
      8.2   Output design
      8.3   Data base design
9. System Testing
10. System implementation
11. Security Backup
12. Conclusion
13. Bibliography