jeudi 4 décembre 2014

UIButton not working in iphone5s while working while using adhoc build

I have created a button



@property (nonatomic, retain) UIButton *sendBtn;
@property (nonatomic, retain) UIButton * send;


//here is the code for button



CGRect buttonFrame = CGRectMake(270, 0, 60, 45);
send = [[UIButton alloc] initWithFrame: buttonFrame];
[send setTitle: @"send" forState: UIControlStateNormal];
[send addTarget:self action:@selector(sendMsgAction:) forControlEvents:UIControlEventTouchUpInside];
[send setTitleColor: [UIColor redColor] forState: UIControlStateNormal];
[self addSubview:send];
self.otherBtn = send; self.sendBtn = send;


When i run it using developer profile it works correct But while using adhoc build it don't respond.


NOTE: it works fine in iphone4s,ipad2,iphone5 with adhoc and developer both but not working in iphone5s using adhoc build,while using developer work fine




Aucun commentaire:

Enregistrer un commentaire