cell.textLabel.font = [UIFont systemFontOfSize:12];
Showing posts with label table. Show all posts
Showing posts with label table. Show all posts
Wednesday, 5 March 2014
Sunday, 2 March 2014
Expanding and Collapsing table view cells in ios
Find a great code for expanding and collapsing table view on apple developer webiste. This is the link:
https://developer.apple.com/library/ios/samplecode/TableViewUpdates/Introduction/Intro.html
"TableViewUpdates" demonstrates how you can use animated updates to open and close sections of a table view for viewing, where each section represents a play, and each row contains a quotation from the play. It also uses gesture recognizers to respond to user input: * A UITapGestureRecognizer to allow tapping on the section headers to expand the section; * A UIPinchGestureRecognizer to allow dynamic changes to the height of table view rows; and * A UILongPressGestureRecognizer to allow press-and-hold on table view cells to initiate an email of the quotation.
https://developer.apple.com/library/ios/samplecode/TableViewUpdates/Introduction/Intro.html
"TableViewUpdates" demonstrates how you can use animated updates to open and close sections of a table view for viewing, where each section represents a play, and each row contains a quotation from the play. It also uses gesture recognizers to respond to user input: * A UITapGestureRecognizer to allow tapping on the section headers to expand the section; * A UIPinchGestureRecognizer to allow dynamic changes to the height of table view rows; and * A UILongPressGestureRecognizer to allow press-and-hold on table view cells to initiate an email of the quotation.
Tuesday, 30 April 2013
What is NSDictionary?
If
you are parsing xml data on your iOS program, please keep in mind that
the code is slightly different when read xml file local from when you
read it from a server.
Parsing Local XML file: ( xmlparser.m )
-(id) loadXMLByURL:(NSString *)urlString
{
NSData *xmlData = [NSData dataWithContentsOfFile:urlString];
NSXMLParser *parser = [[NSXMLParser alloc] initWithData:xmlData];
parser.delegate = self;
[parser parse];
return self;
}
Parsing XML file from Server: ( xmlparser.m )
-(id) loadXMLByURL:(NSString *)urlString
{
NSData *xmlData = [NSData dataWithContentsOfFile:urlString];
NSXMLParser *parser = [[NSXMLParser alloc] initWithData:xmlData];
NSURL *url = [NSURL URLWithString:urlString];
NSXMLParser parser = [[NSXMLParser alloc]initWithContentsOfURL: url];
parser.delegate = self;
[parser parse];
return self;
}
If you have any Questions please comment.
written by: infinitywebseo
Labels:
foundation,
hash,
ios,
keys,
nsarray,
nsdictionary,
simple,
table,
values
Subscribe to:
Comments (Atom)