$string = 'Hello World!';
if(stristr($string, 'earth') === FALSE) {
echo '"earth" not found in string';
}
// 出力は "earth" not found in string となります
参照元:http://www.php.net/manual/ja/function.st…
IBOutlet UIImageView *bgImage;
@property(nonatomic,retain) IBOutlet UIImageView *bgImage;
上記のようなbgImageがInterfaceで宣言され、Interface Builder上に、UIImageViewが配置されているとすると以下のように実装すれば、該当箇所に画像が挿入されます。もしくは、以下のようにします。bgImage.image = [UIImage imageNamed:@”bg.png”];
UIImage *image = [UIImage imageNamed:@”bg.png”];
[bgImage setImage:image];
この投稿へのコメント
コメントはまだありません。