Xcode 4.5 error – Timed out waiting for app to launch

Sometime we usually face the problems for launching the app directly from latest Xcode.
During the time of debugging we often encounter ‘Time Out ‘error. To fix the issue many people tried it in various ways. As an IOS developer I have also faced the same issue while launching app form Xcode box. Xcode shows me that message as “Could not launch “appname”. Timed out for the app to launch”.

I just figured out what exactly the problem with latest Xcode devises, and followed the following method to overcome it ……

Continue reading

Advertisements

Page Navigation using Director Class with Corona SDK

Introduction:
In every application we have different pages to hold different components and we need to navigate from one to another. With the Corona SDK, we have different ways for page navigation like navigation using director class, storyboard and so on. So here we will discuss about the page navigation using ‘director.lua’ class.

Description:
Suppose we have two windows, window1 and window2 and every application prepared with Corona have a landing page or we can say it as a start page for the application named as ‘main.lua’. If someone renames this file then app will not run. In order to use director class we need to put the director.lua file to root directory of the project with main.lua file.

Continue reading

Modal popup in Titanium

Now a day it’s common to show messages in websites using modal popup. Here I have tried to make a custom modal window that can be used to show messages.

There will be button on a window, on click of which a modal popup will appear on screen and then if we click outside of the message view, the popup window will get closed.

Continue reading

Memory Management in Titanium Application

A virtual place which is totally responsible to store and hold our data in this virtual world of mobile or internet is Memory. As this is limited in mobile devices so while developing any application used by them, we should keep this Memory in our mind. And due to this step of Memory Management comes to play.

Memory and storage are looks similar but if we look closely, can find that Memory are volatile location where application and its related data are stored temporarily when application get processed. And the storage had the places where we store our data as long as we need. In mobile devices both storage and memory related things are handled by ship and also by SD Card. Memory spaces varying device to device. In any device there is a limitation for memory consumed by different application and it also varied from device to device. So memory consumed by our application should not exceed the memory limitation provided on device. Violation of this will result crashing of that application unexpectedly. That’s why memory management is the crucial thing that we need to be handled carefully while developing any application.

Continue reading

Custom Tab with Smooth Animation using Titanium Framework

Here is a sample code to make custom tab and open their corresponding views with a smooth animation.

//Define current window
var currentWin = Ti.UI.currentWindow;

//Define the first tab
var firstTab= Ti.UI.createView({

width                  :100,
height                 :50,
left                     : 65,
top                     : 0,
opacity               : 0.5,
backgroundColor :’red’
});

Continue reading