

private void addView(View bview){
title_txt = new TextView(this);
title_txt.setText("測試");
ViewGroup vg = ((ViewGroup) bview.getParent());
vg.addView(title_txt);
}
[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"檔名" ofType:@"副檔名"] ];
只是,如果是@2x的圖片,就無法自動取得,得自己動手寫。參考重載UIImage的方法以方便使用@2x圖片