Tuesday, 27 November 2012
Managing the repository or svn in iphone
code-and-coffee.blogspot.in/2012/06/xcode-source-code-management-with-git.html
Gridview + tableview in iphone and ipad
http://code4app.net/ios/MMGridView/4fb1ac376803fa5543000000
https://github.com/provideal/MMGridView
https://github.com/provideal/MMGridView
Different types of controls in iPhone, iPad, iOS
http://code4app.net/ios/FTUtils/4fb9e32b6803fac606000000
http://www.theiphonedev.com/SourceCode/tabid/143/Default.aspx
http://iosmix.com/tags/twitter?page=1
http://www.theiphonedev.com/SourceCode/tabid/143/Default.aspx
http://iosmix.com/tags/twitter?page=1
For the distribution of app to any number of device without the app store approval
Enter price edition certificate was required.
http://www.foraker.com/ios-app-distribution-options/
http://www.foraker.com/ios-app-distribution-options/
Tuesday, 6 November 2012
remove the background color from search bar in iPhone
for (UIView *subview in [searchBar subviews]) {
if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")])
{
[subview removeFromSuperview];
}
}
for (UIView *subview in [searchBar subviews]) {
NSLog(@"%@", [subview class]);
}
if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")])
{
[subview removeFromSuperview];
}
}
for (UIView *subview in [searchBar subviews]) {
NSLog(@"%@", [subview class]);
}
Customizing the search bar textfield in iPhone
http://caydenliew.com/2012/01/customize-uisearchbar-background-image/
for (UIView *subview in [searchBar subviews]) {
if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")])
{
[d
if ([subview isKindOfClass:NSClassFromString(@"UISearchBarTextField")]) {
[(UITextField *)subview setBackground:[UIImage imageNamed:@"searchboxbg.png"]];
}
}
for (UIView *subview in [searchBar subviews]) {
if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")])
{
[d
if ([subview isKindOfClass:NSClassFromString(@"UISearchBarTextField")]) {
[(UITextField *)subview setBackground:[UIImage imageNamed:@"searchboxbg.png"]];
}
}
Changing the search bar textfield left search icon in iPhone
UITextField *textfield=(UITextField*)[[searchBar subviews] objectAtIndex:0];
UIImage *image = [UIImage imageNamed: @"searchbtn.png"];
UIImageView *iView = [[UIImageView alloc] initWithImage:image];
textfield.leftView=iView;
UIImage *image = [UIImage imageNamed: @"searchbtn.png"];
UIImageView *iView = [[UIImageView alloc] initWithImage:image];
textfield.leftView=iView;
Checking device compatibilty comparision parameter in iphone
iPhone 1G
iPhone 3G
iPhone 3GS
iPhone 4
Verizon iPhone 4
iPhone 4S
iPad
iPad 2 (GSM)
iPad 2 (CDMA)
iPad-3G (4G)
iPhone 3G
iPhone 3GS
iPhone 4
Verizon iPhone 4
iPhone 4S
iPad
iPad 2 (GSM)
iPad 2 (CDMA)
iPad-3G (4G)
Starting to ending for the registering and issuing the certificate for the IOS program.
http://www.raywenderlich.com/8003/how-to-submit-your-app-to-apple-from-no-account-to-app-store-part-1
Not reloaded issue with the CellforTowAtIndexPath + tableview + iphone
http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/
https://github.com/breeno/EditingUITableView
Write down this statement to the cellforrowatindexPath method of tableview and it will work now.
NSString *CellIdentifier = [NSString stringWithFormat: @"Cell%i", indexPath.row];
Example......
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *CellIdentifier = [NSString stringWithFormat: @"Cell%i", indexPath.row];
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] ;
UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(140.0, 12.0,170.0, 25.0)];
textField.borderStyle = UITextBorderStyleNone;
//yes strange, but otherwise the textfield won't show up :(
cell.textLabel.backgroundColor = [UIColor blackColor];
textField.tag=indexPath.row;
//textField.text = [NSString stringWithFormat:@"value %i", indexPath.row];
textField.placeholder= [NSString stringWithFormat:@"value %i", indexPath.row];
[textField setDelegate:self];
//[textField addTarget:self action:@selector(textFieldDone:)
// forControlEvents:UIControlEventEditingDidEndOnExit];
[cell.contentView addSubview:textField];
[textField release];
cell.textLabel.text = [NSString stringWithFormat:@"Item %i", indexPath.row];//[questionsArray objectAtIndex:indexPath.row];
textField.returnKeyType=UIReturnKeyNext;
if (indexPath.row==6) {
textField.returnKeyType=UIReturnKeyDone;
}
}
cell.selectionStyle=UITableViewCellSelectionStyleNone;
return cell;// autorelease];
}
https://github.com/breeno/EditingUITableView
Write down this statement to the cellforrowatindexPath method of tableview and it will work now.
NSString *CellIdentifier = [NSString stringWithFormat: @"Cell%i", indexPath.row];
Example......
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *CellIdentifier = [NSString stringWithFormat: @"Cell%i", indexPath.row];
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] ;
UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(140.0, 12.0,170.0, 25.0)];
textField.borderStyle = UITextBorderStyleNone;
//yes strange, but otherwise the textfield won't show up :(
cell.textLabel.backgroundColor = [UIColor blackColor];
textField.tag=indexPath.row;
//textField.text = [NSString stringWithFormat:@"value %i", indexPath.row];
textField.placeholder= [NSString stringWithFormat:@"value %i", indexPath.row];
[textField setDelegate:self];
//[textField addTarget:self action:@selector(textFieldDone:)
// forControlEvents:UIControlEventEditingDidEndOnExit];
[cell.contentView addSubview:textField];
[textField release];
cell.textLabel.text = [NSString stringWithFormat:@"Item %i", indexPath.row];//[questionsArray objectAtIndex:indexPath.row];
textField.returnKeyType=UIReturnKeyNext;
if (indexPath.row==6) {
textField.returnKeyType=UIReturnKeyDone;
}
}
cell.selectionStyle=UITableViewCellSelectionStyleNone;
return cell;// autorelease];
}
Directly open up the map from the running app in iPhone
NSString* address = @"118 Your Address., City, State, ZIPCODE";
NSString* currentLocation = @"Current Location";
NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%@&daddr=%@",[currentLocation stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding],[address stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
UIApplication *app = [UIApplication sharedApplication];
[app openURL: [NSURL URLWithString: url]];
NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%@&daddr=%@",[currentLocation stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding],[address stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
UIApplication *app = [UIApplication sharedApplication];
[app openURL: [NSURL URLWithString: url]];
Subscribe to:
Comments (Atom)