cat ~/.gitconfig
git clone git@github.com:bestbuymobileapps/bby-core-iphone-app.git
git fetch
git branch -all
git branch -r
git branch
git status
git pull origin BRANCH_NAME
git add .
git commit -m"message"
git push origin BRANCH_NAME
git log -7 --oneline
git checkout BRANCH_NAME
git log
ls
git branch -d dev-webcommerce
git merge -m"Merge Message" dev-webcommerce
git diff .
git branch BRANCH_NAME
git checkout -- Folder/Commit ID
git config --global push.default current
git reset --hardclear
git reset --hard
git rm filename
git log --oneline
pwd
clear
gitk
git stash
git revert commitID
iOS (Known as iPhone OS before June 2010) is Apple's mobile operating system. Originally developed for the iPhone, it has since been extended to support other Apple devices such as the iPod touch, iPad and Apple TV.
Monday, 5 March 2012
How Manage Data In Objective-C
%@ Object
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
%lld long long
%llu unsigned long long
%Lf long double
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
%lld long long
%llu unsigned long long
%Lf long double
Tuesday, 28 February 2012
TextField Allow Only Numeric Value And The Text Length
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
BOOL allowChange = YES;
if ([textField isEqual:zipText])
{
allowChange = NO;
int textLength = [textField.text length];
int value;
if (([string isEqualToString:@""]))
{
allowChange=YES;
}
else
{
value = (int) [string characterAtIndex:0];
}
if ((textLength <= kMaxZipLength) && value >=48 && value <=57)
{
allowChange=YES;
}
}
return allowChange;
}
{
BOOL allowChange = YES;
if ([textField isEqual:zipText])
{
allowChange = NO;
int textLength = [textField.text length];
int value;
if (([string isEqualToString:@""]))
{
allowChange=YES;
}
else
{
value = (int) [string characterAtIndex:0];
}
if ((textLength <= kMaxZipLength) && value >=48 && value <=57)
{
allowChange=YES;
}
}
return allowChange;
}
Subscribe to:
Posts (Atom)