在參考How to install GUI in Ubuntu Server之後,自己就試著用
sudo apt-get install x-window-system-core gnome-core
結果真的可以安裝很簡易版本的gnome...幾乎沒有任何GUI app...連synaptic都沒有,所以只好再用apt-get來安裝
sudo apt-get install x-window-system-core gnome-core
#import "APXML.h"就可以使用到全部的相關類別,不必一一去import個別的class。
APDocument *doc = [APDocument documentWithXMLString:xmlstring];
APElement *rootElem = [doc rootElement];
NSArray *childElements = [rootElem childElements];
NSString *elementName = elem.name;
NSString *elementValue = elem.value;
NSString *attrValue = [elem valueForAttributeNamed:attributeName];
APElement *elem = [APElement elementWithName:elementName];
[elem addAttributeNamed:attrName withValue:attiValue];[elem appendValue:elementValue];
[elem addChild: childElem];
APDocument *doc = [[APDocument alloc] initWithRootElement: elem];
NSString *xmlString = [doc xml];
@implementation NSString (TextHeight)-(CGFloat) textHeightForSystemFontOfSize:(CGFloat)size {//Calculate the expected size based on the font and linebreak mode of the labelCGFloat maxWidth = [UIScreen mainScreen].bounds.size.width - 50;CGFloat maxHeight = 9999;CGSize maximumLabelSize = CGSizeMake(maxWidth,maxHeight);CGSize expectedLabelSize = [self sizeWithFont:[UIFont systemFontOfSize:size] constrainedToSize:maximumLabelSize lineBreakMode:UILineBreakModeWordWrap];return expectedLabelSize.height;}@end
create index index_mytable_mycol on mytable(mycol)
drop index index_mytable_mycol