¿El archivo de iPhone .IPA queda en blanco después de abrir la pantalla de salpicaduras?

StackOverflow https://stackoverflow.com/questions/8849134

  •  27-10-2019
  •  | 
  •  

Pregunta

He creado la aplicación MAP y se está ejecutando en mi máquina Mac con Xcode. Pero cuando creé su archivo IPA y sincronizado con mi dispositivo iPhone, no se abre. Solo la pantalla de salpicaduras se abre y se acerca. Tengo mi signo de certificado de desarrollador y distribución con el dispositivo UDID. Mi cliente tampoco pudo ejecutar la aplicación de forma remota ... gracias de antemano por su ayuda. por favor sugiera lo que me estoy perdiendo aquí?

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

  //sleep(0.5);



arrayNo = [[NSMutableArray alloc] init];             //pickerview radius array

[arrayNo addObject:@"5km"];
[arrayNo addObject:@"10km"];
[arrayNo addObject:@"15km"];

   [window addSubview:[viewController view]];
[window makeKeyAndVisible];

return YES;

}

Upadated: con problemas de fugas

También estoy revisando la posibilidad con fugas de memoria y usando la herramienta de instrumentos, estoy recibiendo fugas al 100% al momento de iniciar la aplicación. Su NsplaceHolderString se filtra en el siguiente código ...

CLLocationCoordinate2D location;


    NSString *url = [NSString stringWithFormat:@"..myurl......lat=%f&lng=%f&radius=5",locationManager.location.coordinate.latitude,locationManager.location.coordinate.longitude];

    radiusinurl.text = @"5km";
    NSURL *URL = [NSURL URLWithString:url];
    NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:URL];
    //Initialize the delegate.
    **XMLParser *parser = [[XMLParser alloc] initXMLParser];**   //5.3% leaks
    //Set delegate
    [xmlParser setDelegate:parser];
    //Start parsing the XML file.
    **BOOL success = [xmlParser parse];**           //0.2% leaks

        [xmlParser release];
        [parser release];
  if(success)

    {                     
 NSLog(@"show me [appDelegate.markers count] %d",[appDelegate.markers count]);


        annobjs = [[NSMutableArray array] retain];
        if([appDelegate.markers count] == 0)
        { //99% leaks on below line where I am calling another method
**[self performSelector:@selector(showingThreeResultsOnCurrentLocation)   withObject:nil];**         //99% leaks
        }
        else
        {//some logic

        }

    }
    else
    {

         //logic
    }}}}

He comentado fugas al final de la línea. ¿Puedes corregir mi código? Gracias por adelantado...

¿Fue útil?

Solución

Inicializar el controlador de vista primero

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
     NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];  //This is for autoresize when in phone call mode(which does not work yet)
     [dict setObject:@"trigger" forKey:@"frame"];

     [[NSNotificationCenter defaultCenter] postNotificationName:@"trigger"
                                                object:self
                                              userInfo:dict];

     arrayNo = [[NSMutableArray alloc] init];             //pickerview radius array

     [arrayNo addObject:@"5km"];
     [arrayNo addObject:@"10km"];
     [arrayNo addObject:@"15km"];

    viewController = [[UIViewController alloc] initWithNibName:@"UIViewController" bundle:nil];
    UINavigationController *nav = [[UINavigaitonController alloc] initWithRootViewController:nav];

  self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
  self.window.rootViewController = nav;
  [self.window makeKeyAndVisible];
  return YES;
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top