Note that there are some explanatory texts on larger screens.

plurals
  1. POMy iPhone app is crashing and showing [__NSCFDictionary stringByReplacingOccurrencesOfString:withString:]: unrecognized selector sent to instance
    primarykey
    data
    text
    <p>My iPhone application is crashing and showing error :</p> <p><code>- [__NSCFDictionary stringByReplacingOccurrencesOfString:withString:]: unrecognized selector sent to instance 0x99f60b0</code></p> <p>Here is my code NSString *strData; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; if (delegate.respondInsightIndex) { strData = [insights objectAtIndex:index]; } else { strData = [insights lastObject];<br> }</p> <pre><code>NSString *strReplace = [NSString stringWithFormat:@"%@",[strData stringByReplacingOccurrencesOfString:@"%20" withString:@" "]]; </code></pre> <p>this is my method where the crash is happening again</p> <pre><code>- (void) setComments:(NSArray*)comments { NSString * htmlString; if ( [UIHelper isPad] ) htmlString = @"&lt;html&gt;&lt;style type=\"text/css\"&gt;body{padding:15px 40px 0 40px; font-family: Helvetica;" "font-size: 14px;" "color: #888888;" "line-height: 50%" "},&lt;/style&gt;&lt;body&gt;"; else htmlString = @"&lt;html&gt;&lt;style type=\"text/css\"&gt;body{padding:8px 20px 0 20px; font-family: Helvetica;" "font-size: 11px;" "color: #888888;" "},&lt;/style&gt;&lt;body&gt;"; for ( NSString * single in comments ) { if ( single == nil ) single = @""; if ([single isKindOfClass:[NSString class]]) { single = [single stringByReplacingOccurrencesOfString:@"%20" withString:@" "]; } NSString * str ; if([UIHelper isPad ]) { str = [NSString stringWithFormat:@"%@&lt;br/&gt;&lt;hr color=#555555&gt;&lt;p align=\"right\" style=\"font-size:12px;\"&gt;Username&lt;/p&gt;", single]; } else { str = [NSString stringWithFormat:@"%@&lt;br/&gt;&lt;hr color=#555555&gt;&lt;p align=\"right\" style=\"font-size:9px;\"&gt;Username&lt;/p&gt;", single]; } htmlString = [NSString stringWithFormat:@"%@%@", htmlString, str]; } htmlString = [NSString stringWithFormat:@"%@%@", htmlString, @"&lt;/body&gt;&lt;/html&gt;"]; if ( [contentView respondsToSelector:@selector(loadHTMLString:baseURL:)] ) [contentView loadHTMLString:htmlString baseURL:[NSURL URLWithString:@"http://www.secondprizm.com"]]; </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload