Singsys blog

Performing Simple Animations using NSTimer class

Here is a simple tip on how we can perform simple animation on objects in Xcode using the NSTimer class to create timers that call methods at regular intervals.

 

Using the NSTimer class –

 

There are many ways to perform simple animations. One of the easiest ways to perform animation is to use the NSTimer class. The NSTimer class creates timer objects, which enable you to call a method at a regular time interval. It also allows you to update the position of an image at regular time intervals. (more…)

Playing video from the server, application bundle and you tube embed code in iOS Applications

We have 3 ways to play videos in iOS applications, which is given below.

1. To play video which resides on the server.
2. To play video which reside in our system or our application bundle.
3. To play video using “you tube” embed code. (more…)

Use consistent naming convention in programming to easily understand the source code

In computer programming, naming convention might be considered as a set of rules for choosing the identifiers to denote variables, types and functions & methods names in source code and project documentation. The purpose for using this naming convention is only to reduce the effort needed to read and understand the source code and to also to enhance the code appearance by using appropriate and concise keys.

(more…)

When running into EXC_BAD_ACCESS errors during iPhone development, enabling NSZombieEnabled can easily debug access error.

EXC_BAD_ACCESS error is a general error in your iOS application, but is hard to debug and find the route cause for this error in your application. The main reason of EXC_BAD_ACCESS error to happen is that – somewhere in your application code you are trying to send a message to an object that has already been released.

 

So how we will find the root cause of this error? (more…)

HipHop Virtual Machine by Facebook to speed-up PHP

Most popular Social networking Site Facebook  has moved one step ahead at making the PHP programming language runs more quickly. Facebook has developed a PHP virtual machine, called HipHop Virtual Machine (HHVM) that can executes the PHP web programming language as much as 9 times as quickly as running PHP on large systems.

(more…)

Page 41 of 44« First...102030...3940414243...Last »