jeudi 7 juillet 2016

iTunes Connect can't see my BundleID


I am trying to submit a revised iPhone app for release on iTunes. I’ve tested the app in as many configurations as possible and created and saved an iTunes Connect record. But I can’t find a way to get the latest build to appear in the dialogue window of iTunes connect. When I click on Build ⊕ or click on the link Select a build before you submit your app I only see the previous build. I’ve renamed the bundleID for the latest build in Xcode but I can’t make this appear in the iTunes Connect dialogue window. What do I need to do ?

How to upload more than 1 image to AWS S3


As per title, how do I upload more than 1 image to AWS S3? I'm able to successfully upload 1 image into my AWS S3 bucket. However, my app allows users to upload up to three images, and is there a way not to specify the bucket, and AWSTransferManager again for three times? let uploadRequest: AWSS3TransferManagerUploadRequest = AWSS3TransferManagerUploadRequest() uploadRequest.bucket = "mybucket" uploadRequest.ACL = AWSS3ObjectCannedACL.PublicRead uploadRequest.key = "media/uploads" uploadRequest.contentType = "image/png" uploadRequest.body = url let transferManager: AWSS3TransferManager = AWSS3TransferManager.defaultS3TransferManager() transferManager.upload(uploadRequest).continueWithExecutor(AWSExecutor.mainThreadExecutor(), withBlock: {(task: AWSTask) -> AnyObject! in if task.error != nil { print(task.error) NSLog("Error uploading : " + uploadRequest.key!) } else { NSLog("Upload completed") }) }

Keep my Clang Based tool from analyzing header files in source code?


I'm writing a stand alone tool based on LibTooling with a RecursiveASTVistor, and I don't want to have to go through the contents of header files stored in source code. Do I need to change the compilation database? I've been using this little hack to keep my tool from crashing, but I don't want my tool to analyze any header files at all included in the source code I'm dealing with.

bool VisitDecl(Decl *D) {

    FullSourceLoc FullLocation = Context->getFullLoc(D->getLocStart());
    const auto &SourceManager = Context->getSourceManager();

    if (FullLocation.isValid() && !SourceManager.isInSystemHeader(FullLocation) && Context->getSourceManager().isInMainFile(D->getLocation()))
}

What is the difference between Pan and Swipe in iOS?


Sounds simple .. Hold the Trackpad, move the finger, release .. But somehow swipe is not being triggered (pan is triggered instead)

UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] 
      initWithTarget:v action:@selector(handleSwipe:)];
swipeGesture.direction= UISwipeGestureRecognizerDirectionUp;
[v addGestureRecognizer:swipeGesture];

Pan is recognized by the above sequence instead.

UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] 
      initWithTarget:v action:@selector(handlePan:)];
[v addGestureRecognizer: panGesture];

If pan is commented, swipe is recognized by the same gesture .. With this, 2 questions:

  • What is the difference then between a pan and a swipe?
  • How can one simulate a swipe on iPhone simulator?

Create Horizontal ScrollView in Swift


I want to know how to create a horizontal scroll view in Swift. I also want to know how to add buttons to the scroll view. An excellent example of what I'm essentially asking for is in the game "Cut the Rope."

enter image description here

In the picture you're presented with a picture (which you can click on) of a "fabric box." There are other different types of boxes that, with scrolling, you can access them. How would I do something similar to this?


Input from UITextField connected from storyboard to Swift view controller file


Using Swift, how do I get the input from a UITextField?

In my Main.storyboard, I have chosen a "Text Field" from the premade components and dragged it onto my storyboard.

Now how can I access its value in my ViewController.swift?

What I'm currently doing:

I ctrl+drag the text field into my ViewController.swift file. Then in the popup-box I choose "outlet" and name it "myInput".

Then in another function, I access its value by using self.myInput.text.

Is this the only way to access its input? Is my approach following Swift conventions?


Debugging an App, that needs a URL to a server


I have a Xamarin Solution with an Android, iOS, and Windows mobile solution. I also have a Web Server that sits on localhost:XXXX. I need to be able to access the URI endpoints on my local, while debugging on Mobile.

While the Web Server is running I go to fiddler, and compose http://localhost:XXXX/api/Locationsand everything is correct, I get the JSON data and life is good.

However when debugging the App on any phone, I suspect the endpoint on the phone is trying to access it's own "localhost". Is there a hosts file that I can edit on the emulators? or another solution?