Implementing 3D-Touch with swift on View - ios

Im experimenting with the 3D-Touch/Force-Touch these days and Im new to iOS Development.
If I search for 3D-Touch in Swift - I always find something about Peek & Pop or Quick-Actions on Home Screen.
I want to ask, if its possible to initiate a 3D-Touch somewhere on my View? For example - Every time I make a 3D-Touch, a rectangle will be shown on that specific Touch-position. And after that make some other gestures with the rectangle.
Thanks in advance!

Related

Instagram pop up feature alike in swift

I was wondering if anyone have any idea how to work out something similar to Instagrams's feature that when you keep pressed a picture in a profile, it pops up until you release the screen. I have been looking around and haven't really found an answer. I was trying to work with popovers but they're not allowed in iphone and most of the alternatives use storyboards. Basically the difference from what im looking for and a popoverpresentation is that I want the new screen to cover most of the screen, not from it to come from the button itself, if that makes sense, while I have the screen pressed. So basically does anybody know how to do this in swift using no storyboards? Thank you!

Blur then focus Effect

I am making a single view application in Xcode and I am having a little trouble*(By little I mean BIG trouble!)
I wanted to make a clone of the Apple's News app home page where the buttons are are blurry than come to focus.I want to use that effect for three different ui elements.I have been trying for days but no success. :(
Is there a way of doing the blur than focus animation to a label a button And image view? If so can you please guide me on how to do it?
Thank you for your time.

Create an intro screen for iOS app

I want to create an intro screen for my app. This will be around 5 pages of intro and can have animated images on it. Something very similar to Box app intro screen.
So question is does IOS provides any specific view controller for this kind of intro? If not should I use uiview controller to show on first load and somehow keep a track. What are these actually called in programming term?
TIA
No.
You can save status by NSUserDefault.
There are some open source that can help you build intro quickly.
https://github.com/ealeksandrov/EAIntroView
https://github.com/MatthewYork/MYBlurIntroductionView

MapKit: How to create a custom annotation view with a button on a .xib file?

I'm using Xcode 5 and the latest iOS SDK and I'm having a really hard time figuring out how to create custom annotations with a clickable button.
All I need is a custom annotation with a button, that is shown when the user taps a pin on my MKMapView. Following some tutorials, I managed to create a custom class that loads a .xib file, this already works. However, the problem is, that whenever I try to click a button placed on the annotation view, the pin gets deselected. I would love to be able to design my annotation in a .xib file and not create it 100% programmatically. Is there any way of doing so?
Thanks,
Niclas
There is a great tutorial on maps on a site I used when I first got started into this section of iOS. It can be found here: http://www.raywenderlich.com/21365/introduction-to-mapkit-in-ios-6-tutorial ( Just an FYI, this is a great resource for learning more about iOS. )
Anyways, this paragraph should sound familiar (as to what you're after):
You’ve now made it so that in the callout when a pin is tapped on, there will be a button on the right hand side. When this is tapped, the mapView:annotationView:calloutAccessoryControlTapped: method is called. In this method, you grab the MyLocation object that this tap refers to and then launch the Maps app by calling the openInMapsWithLaunchOptions: method.
Just note that it is opening up the Maps app, but you can choose to do whatever you want really.
Later on, here are some other great links if you need them:
http://www.raywenderlich.com - This is where I started, recommend you do the same. Use their search box. They sell some privatized/self-published PDF books too if you like that.
http://www.cocoacontrols.com - You could probably find a control someone has already written with maps.. use the search, filter for iOS only.
http://www.nshipster.com - Great building block site
http://objc.io - Great site for getting into more low-level development.

iOS - View Transition open and close

In the latest Expedia app for iOS, they have a very interesting effect that I am trying to wrap my head around.
When you tap on any tile it flip and zoom animation.
Can you please help me for the same for UIView transition.
I've wanted to use this kind of animations in my app as well, so I have written a simple custom segue that does just that - you can even choose between multiple types of flips!
It's called IBCellFlipSegue, give it a try and let me know what you think!
https://github.com/IBLabs/IBCellFlipSegue

Resources