Add views in UIStackView programmatically

I’m trying to add views in UIStackView programmatically. For now My code is: UIView *view1 = [[UIView alloc]init]; view1.backgroundColor = [UIColor blackColor]; [view1 setFrame:CGRectMake(0, 0, 100, 100)]; UIView *view2 = [[UIView alloc]init]; view2.backgroundColor = [UIColor greenColor]; [view2 setFrame:CGRectMake(0, 100, 100, 100)]; [self.stack1 addArrangedSubview:view1]; [self.stack1 addArrangedSubview:view2]; When i deploy the app, there is only 1 view … Read more

New warnings in iOS 9: “all bitcode will be dropped”

I have this new warning about the Google Framework in my app: (null): URGENT: all bitcode will be dropped because ‘/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/foldername/appname/GoogleMobileAds.framework/GoogleMobileAds(GADSlot+AdEvents.o)’ was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error … Read more

How do I load an HTTP URL with App Transport Security enabled in iOS 9? [duplicate]

This question already has answers here: Transport security has blocked a cleartext HTTP (29 answers) Closed 6 years ago. So, the new beta SDK of iOS released last night has “App Transport Security” which encourages developers to use https instead of http. In principle, this is a great idea, and I already use https in … Read more

The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

I am facing the Problem when I have updated my Xcode to 7.0 or iOS 9.0. Somehow it started giving me the Titled error “The resource could not be loaded because the App Transport Security policy requires the use of a secure connection” Webservice Method: -(void)ServiceCall:(NSString*)ServiceName :(NSString *)DataString { NSURLSessionConfiguration *sessionConfiguration = [NSURLSessionConfiguration defaultSessionConfiguration]; [sessionConfiguration … Read more

Transport security has blocked a cleartext HTTP

What setting do I need to put in my info.plist to enable HTTP mode as per the following error message? Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file. Assume that my domain is example.com. 2 29 Use NSAppTransportSecurity: You … Read more