
Search In
The following code is to convert day into specific day of week like Sunday , Monday , today , tomorrow etc. and after 7 days you want to show only that date, then this code will help you.
NSDateFormatter *formatter = [[NSDateFormatter alloc] init]
In OnCreate() Method add addTextChangedListener(new TextWatcher() to an EditText View
example:
searchEditText.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int
In order to move body along with the sprite in cocos2d with box2d,you no need to worry about.
Just take a look to this:-
PhysicsSprite* sprite = (PhysicsSprite*)body->GetUserData();
CGPoint target;
//set target for the body
target = CGPoin
<!DOCTYPE html>
<html>
<head>
<style>
@keyframes anim
{
from {background:#fff;}
to {background:#00ff;}
}
@-webkit-keyframes anim /*Safari and Chrome*/
{
from {background:#000;}
to {background:#090909;}
}
div
{
width:200px;
hei
Multiple Backgrounds:-
We can use multiple background images in CSS background property using a comma-separated list of values. The the first value in the list represents the top layer, with subsequent layers rendered behind successively.
Below is a
Multiple Backgrounds:-
We can use multiple background images in CSS background property using a comma-separated list of values. The the first value in the list represents the top layer, with subsequent layers rendered behind successively.
Below is a
Hi all,
If you want to add two different xibs in a tableView you can check out the code here.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (tableView==carTable)
{
Review
Snippet works all around to customize the tabbar icons & texts display color for selected and unselected state for iOS7
self.tabbarController.tabBar.tintColor = [UIColor greenColor];
Below code can be used to customize the text look.
you can s
To drag a view we can either use the touch methods of UIViewController or we can use UIPanGestureRecognizer. UIPanGestureRecognizer is much easier and simple to implement. This blog explains how to use it.
Add pan gesture to the view (or any contro
Below written code will be Encrypt and Decrypt Data.This program having used Base64 Encoding which is commonly used in a number of applications including email via MIME, and storing complex data in XML.
import java.net.URLDecoder;
import java.ne
