是否有使用R?
编码来自电子邮件的引用可打印文本的包或函数例如
- (void)setupView {
self.backgroundColor = [UIColor blackColor];
// Configure the TextField
_textField = [[UITextField alloc] initWithFrame:self.bounds];
[_textField setBackgroundColor:[UIColor greenColor]];
[self addSubview:_textField];
// Configure the TableView
_tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
_tableView.delegate = self;
_tableView.dataSource = self;
_tableView.backgroundColor = [UIColor blueColor];
[SimplePopupView showView:_tableView fromView:_textField];
}
我怎样才能得到string =“Коллеги!”在R?
答案 0 :(得分:1)
base
包中的x <- "fa\xE7ile"
Encoding(x)
Encoding(x) <- "latin1"
x
应该可以胜任。例如:
[1] "façile"
将返回:
var counter = 0
var song = ["1","2","3","4"]
func music()
{
var audioPath = NSBundle.mainBundle().pathForResource("\(song[counter])", ofType: "wav")!
var error : NSError? = nil
player = AVAudioPlayer(contentsOfURL: NSURL(string: audioPath), error: &error)
if error == nil {
player.delegate = self
player.prepareToPlay()
player.play()
}
func audioPlayerDidFinishPlaying(player: AVAudioPlayer!, successfully flag: Bool)
{
player.delegate = nil
if flag {
counter++
}
if ((counter + 1) == song.count) {
counter = 0
}
music()
}
您的电子邮件中的文字只是一个字符串向量,因此您可以根据需要对其进行编码。