UIImage *image = [UIImage imageWithContentsOfFile:path];
lbl_gazou.backgroundColor = [UIColor colorWithPatternImage:image];
imv_bg.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"icon57.png"]];
[self.view addSubview:imv_bg];
Xbox 360 Kinect センサー [★宅配便のみ]ポイントアップ10倍4000以上送料無料Xbox 360 Kinect ... |
#import <GameKit/GameKit.h>
@interface ViewController : UIViewController<
GKAchievementViewControllerDelegate
>
// ユーザー認証
- (void) authenticateLocalPlayer;
// アチーブメント報告
-(void)reportAchievementIdentifier: (NSString*) identifier percentComplete:(float) percent;
// アチーブメント表示
- (void) showAchievements;
- (void)achievementViewControllerDidFinish:(GKAchievementViewController *)viewController;
.m
// 初期化
[self authenticateLocalPlayer];
- (void)showAchievements
{
GKAchievementViewController *achievements = [[GKAchievementViewController alloc] init];
if (achievements != nil)
{
achievements.achievementDelegate = self;
[self presentModalViewController: achievements animated: YES];
}
}
-(void)achievementViewControllerDidFinish:(GKAchievementViewController *)viewController
{
[self dismissModalViewControllerAnimated:YES];
}
-(void)reportAchievementIdentifier: (NSString*) identifier percentComplete:(float) percent
{
GKAchievement *achievement = [[GKAchievement alloc] initWithIdentifier: identifier];
if (achievement)
{
achievement.percentComplete = percent;
[achievement reportAchievementWithCompletionHandler:^(NSError *error)
{
if (error != nil)
{
}
}];
}
}
▼《航空便不可》カブトニオイガメ(爬虫類)(1匹) |
▼《航空便不可》カブトニオイガメ(爬虫類)(1匹) |
// 角を丸める
imv_a.layer.cornerRadius = 10;
// 影をつける
imv_a.layer.shadowOpacity = 1.0; // 影の濃さ
imv_a.layer.shadowOffset = CGSizeMake(3, 3); // 影の位置
imv_a.layer.shadowRadius = 2; // 0でくっきり、大きくするとモヤモヤ
45cm以下の水槽用定番外部式フィルター!《お1人様2点限り》エーハイム クラシックフィルター2... |
// 角を丸める
[[lbl_debug layer] setCornerRadius:10.0];
[lbl_debug setClipsToBounds:YES];
// ふち線をつける
[[lbl_debug layer] setBorderColor:[[UIColor greenColor] CGColor]];
[[lbl_debug layer] setBorderWidth:3.0];
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self.view];
[super touchesBegan:touches withEvent:event];
NSLog(@"タッチ開始 %0.1f, %0.1f", location.x, location.y);
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self.view];
[super touchesBegan:touches withEvent:event];
NSLog(@"タッチ中 %0.1f, %0.1f", location.x, location.y);
}
- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self.view];
[super touchesBegan:touches withEvent:event];
NSLog(@"タッチ終了 %0.1f, %0.1f", location.x, location.y);
}
]]>45cm以下の水槽用定番外部式フィルター!《お1人様2点限り》エーハイム クラシックフィルター2... |
45cm以下の水槽用定番外部式フィルター!《お1人様2点限り》エーハイム クラシックフィルター2... |
3DSでも使える! SDHCカード16GB|実測17MB/秒の高速書き込み!クラス10対応 SDHCメモリカード ... |
水槽設置後でも楽々セッティング!オールガラス水槽対応省エネウォール エコルノ60 Ecorno 3... |
《お一人様3点限り》《無地パッケージ》Garnet(ガーネット)10kg【関東当日便可】 |