Wednesday, April 5, 2017

iPhone Application development through Xcode - Part 2 - Solution Structure

Hi All,

Here we will discuss all capabilities and options with Xcode then will move to create a sample application.

Step 1- Open Xcode and create a new Xcode project

Step 2 - Create basic project - Single View Application

Step 3- Project landing screen

Select simulator and run the quiz project.

Run this application - It will open the blank landing screen.

Here it's

Stope simulator by using Command + q

Step 4 - Understanding solution structure and entry points to start.

Go to AppDelegate.swift under project section - details below

Important note here for this class AppDelegate.swift

  1. All App content will be drawn here
  2. A place to respond for the state transition
Important note 

Application object - The application object is responsible for managing the life cycle of the app. The system also create a instance of your AppDelegate class, and assigns it to application objects, Finally, the system launches your app.

The AppDelegate class adopts the UIApplicationDelegate protocol. This protocol defines a number of methods you use to set up your app, to respond to the app’s state changes, and to handle other app-level events.

We may not change in these file for now.

The view controller source file.

Building story boards-

This is the main area - we can see the actual design 

You use storyboards to lay out the flow—or story—that drives your app. You see exactly what you're building while you’re building it, get immediate feedback about what’s working and what’s not, and make instantly visible changes to your user interface.
Main story board

When you ran your app in the iPhone 7 Simulator app, the view in this scene is what you saw on the device screen. However, the scene on the canvas may not have the same dimensions as the simulator’s screen. You can select the screen size and orientation at the bottom of the canvas. In this case, it’s set to iPhone 7 in a portrait orientation, so the canvas and the simulator are the same.

iPhone Application development through Xcode - Part 1 -Development Machine Setup

Hi All,

Today we are going to setup environment for the development of iPhone application.


1. Install Xcode  - Go to Appstore - type xcode.

2. First problem statement:- 

Xcode can’t be installed on “MACINTOSHD” because OS X version 10.12 or later is required.

3. Upgrade existing OS - Latest version of Xcode required 10.12

Go to App-feature and find out the latest OS  mscOS Sierra - 10.12.4


Installation completed, Now here is the latest OS - check click on Apple icon in the menu bar - then about this apple.

Install Xcode again - Go to app store and type Xcode
Required cost while installing Xcode.

Download completed - start installation.
Installation in progress.
Xcode installation completed, below would be the stating screen.

Thursday, March 30, 2017

Sunday, March 26, 2017

Schedule Publish/UnPublish Best practices

Publishing best practices
Schedule Publishing/UnPublishing
Architecture and customization
-Jitendara Soni

1 Introduction

For scheduling and unpublished content based on the upcoming dates is a key area for the Architecture to take the right decision, even to agree for the initial discussion,
Here, it’s an attempt to cover – What is default is Sitecore and what all are the must required changes/customization.
Example – Scheduling.

2 Schedule publishing and unpublishing – Best Practices.

Schedule publishing and unpublishing scenarios.

Scneaion after enabling the future publishing job, as example below

3.1 Scenario 1 – Create an item without any worklow.

Item will be published.

3.2 Scenario 1.1 – Create second version of that item without any workflow

Second item will automatically published.

3.3 Scenario 1.1 – never publish setup without any workflow.

Set never publish to this items – let see if this item automatically disappear or not
It would be quickly deleted.

3.4 Scenario 2.1 – Create item with workflow

It will be published after approval

3.5 Scenario 2.2 – Create new version of workflow items

After approval for next 5 minutes, previous content will be moved.

3.6 Scenario 2.3 – Schdule multiple item through publish menu-change options

Here multiple item can be defined, below are the details

Sunday, March 19, 2017

Visual Studio 2017 – A quick intro and walk-through for new features.

1   Setup and Quick walk through

Link to download latest visual studio 2017

There are total three versions:- Which one to choose – Are those all free to download and use? Let’s explore this.

1.      Visual Studio Community 2017 RC - Free
2.      Visual Studio Professional 2017 RC
3.      Visual Studio Enterprise 2017 RC

Let’s start the free Community 2017 RC 

Question1:- What is different in these versions?

1.1      A new look and options to install

Mobile, and Gaming is altogether is a new/enhanced section – should be explore really.

Installation is in progress.

1.1      It’s definitely very quicker and fast

It's really very exciting - I have just explored some of the key features and wanted to share through this video

I am impressed with the new performance – fast loading time and new UI to choose only required IDE tools

Tuesday, March 14, 2017

Sitecore-Dictionary best practices

Dictionary best practices
Architecture and customization
Jitendra Soni

1      Introduction

For multilingual site, dictionary is an important aspect for all supporting text and it’ very important that it should be well defined – location, internal structure, based on last some international project, Here I am sharing some details for the reference.

1.1      Purpose of document

Provide the input to implement dictionary object, will cover below points.
1.      Location to define dictionary objects.
2.      Recommendation for the internal structure
3.      Support and structure for multisite
4.      Use of multiple dictionaries
5.      A quick practical and walkthrough.

2      Location to define dictionary objects

It should be defined in the shared content for the site, in case of multisite, multiple dictionary will be very useful.

2.1           Global and Site specific Dictionary location and pattern.


2.1           Default dictionary location and use cases.

Default dictionary can be used for system key word or in case if there is only one site.

3      Recommendation for the internal structure

There are two ways to define the internal structure, below are the details.

4      A quick practical demo

5      Sample code:-

<div id="page">
    <div id="logo">
        <h1><a href="/" id="logoLink">Sitecore</a></h1>
    <div id="nav">
    <div id="content">
            Feature 1 - Best way to use the Dictionary objects
    <div id="footer">
            Webpage made by Default Dictionary - <a href="" target="_blank">"@Sitecore.Globalization.Translate.Text("aauthor");"</a>
            <br /> <br />
            <h3>Sitecore.Globalization.Translate.TextByDomain("GlobalSite", "aauthor")</h3>
            <br />
            Webpage made by GlobalSite Dictionary - <a href="" target="_blank">"@Sitecore.Globalization.Translate.TextByDomain("GlobalSite", "aauthor");"</a>
            <br /><br />
            <h3>Sitecore.Globalization.Translate.TextByDomain("MainSite", "aauthor")</h3>
            <br />
            Webpage made by MainSite Dictionary - <a href="" target="_blank">"@Sitecore.Globalization.Translate.TextByDomain("MainSite", "aauthor");"</a>
            <br /><br />
            <br /><br />
            <h2>Duplicate items</h2>
            <br />
            Webpage made by Default Dictionary - <a href="" target="_blank">"@Sitecore.Globalization.Translate.Text("aauthor");"</a>
            <br /><br />

6      Question-Answer-Suggestions

Please do share input on below email id – Will get back to you soon and update the document if required with reference to suggestion/inputs.