私はしばらくこのことに挑戦してきましたが、それを理解することはできません。- [UIThreePartButton text]:認識できないセレクタ
それは私がオーケーヒットすると、私は 取得(アプリのようなサファリのための)ページをブックマークアクションシートである - [UIThreePartButtonテキスト]:インスタンスXXXX
で認識されていないセレクタを私がように見えることはできません私の痛みがどこにあるのか一歩。私はそれはそれ以下のアラートビュー方式で死ぬことに気づき
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0)
{
UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"Bookmarks" message:@"Please enter the site name: \n \n \n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];
alert.center=CGPointMake(160, 50);
alert.tag=1;
UITextField *siteName=[[UITextField alloc]initWithFrame:CGRectMake(20, 70, 245, 30)];
siteName.backgroundColor=[UIColor clearColor];
siteName.borderStyle=UITextBorderStyleRoundedRect;
siteName.autocorrectionType=UITextAutocorrectionTypeNo;
siteName.delegate=self;
siteName.clearButtonMode=UITextFieldViewModeWhileEditing;
siteName.text=[[mainDelegate.sitesArray objectAtIndex:tag] objectForKey:@"webSite"];
siteName.returnKeyType=UIReturnKeyDone;
siteName.tag=2;
[alert addSubview:siteName];
[alert show];
}
}
:if(((UITextField*)[alertView.subviews objectAtIndex:4])
に
if(alertView.tag==1)
if (buttonIndex==1)
{
if(((UITextField*)[alertView.subviews objectAtIndex:4])[email protected]""||((UITextField*)[alertView.subviews objectAtIndex:4]).text==nil)
{
Spefically私は4つのボタン/そのアクションシート上のアクション、そして残りの部分を持っていますいいです...
例外にブレークポイントを設定してブレークポイントをオンにすると、アプリケーションを停止する行はどの行ですか? –
F(alertView.tag == 1) \t \t(((UITextFieldの*)IF(buttonIndex == 1) \t \t { \t \t \tなら[alertView.subviews objectAtIndex:4])テキスト== @」 "||((UITextField *)[alertView.subviews objectAtIndex:4])。テキスト== nil) \t \t \t { – Jason
私に連絡しますか? – Jason