je veux envoyer des données entre les vues, mais je reçois une erreur: sélecteur non reconnu ....NSCFNumber sélecteur non reconnu
et dans le débogueur, la variable mystring est un NSCFNumber ("à ce temps ") au lieu de NSString ...
allergy_appAppDelegate.h
#import <UIKit/UIKit.h>
@interface allergy_appAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> {
UIWindow *window;
UITabBarController *tabBarController;
NSMutableArray *result_array;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (copy , readwrite) NSMutableArray *result_array;
@end
viewcontroller.m
allergy_appAppDelegate *dataCenter = (allergy_appAppDelegate *)[[UIApplication sharedApplication]delegate];
dataCenter.result_array = [[NSMutableArray alloc] initWithArray:Parser_result];
result.m
allergy_appAppDelegate *dataCenter = (allergy_appAppDelegate*)[[UIApplication sharedApplication]delegate];
show_user_array = [[NSMutableArray alloc] initWithArray: dataCenter.result_array]
for (NSString *mystring in show_user_array) {
textView.text = [[textView text] stringByAppendingString:@"\n"];
textView.text = [[textView text] stringByAppendingString:mystring];
}
le tableau est plein d'instances de NSString ... j'ai essayé la propriété read-write mais je n'ai pas eu de succès .. – Phil
anybody an idea? – Phil
Afficher le message d'erreur complet et la trace arrière. – bbum