I want to do this:I push or present a viewcontroller called B, the previous viewcontroller called A, but B won't cover full screen, it's 3/4 width of screen's width,the left 1/4 width of A turns dark,when I tap this area,B can be dismissed,is this possible? Appreciate for your suggestions!
Push/Present a viewcontroller from right,the viewcontroller cover 3/4 part of previous viewcontroller
113 Views Asked by John At
2
There are 2 best solutions below
1
Sachin
On
Why don't you try out some open source libraries to achieve this. The best library that I have come across is SWRevealViewController
There is a TUTORIAL on AppCoda featuring this library. Check that out for more info.
FYI,
If you still prefer a DIY approach, take a look at this.
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in UINAVIGATIONCONTROLLER
- Switch between UIStatusBar color (black/white) in UINavigationController based app
- UINavigation Bar to turn transparent as user navigates deeper
- Implementing navigation that supports going back to a search result
- Delegates in Navigation Controller
- Using Navigation Controller in TabBar Controller Iphone 6+ IOS 8.3
- How is it I can animate the change in bar tint color of a UINavigationBar but not a UITabBar?
- Side menu with dynamic table cell will navigate page but with navigation controller coming as nil
- How do I access a view controller from AppDelegate.m during a background refresh
- Change UIWindow backgroundColor from UIViewController?
- view with navigationController over tabBarController
- iOS back button working weirdly in iOS8
- Add UINavigationController to navigation stack
- NavigationBar not loading when ViewController is programatically presented
- What method is called when UINavigationController is presented?
- Why is the UINavigationBar turning black?
Related Questions in PUSH
- App crash (if closed) after click on notification
- How to trigger git hooks without pushing to the repo
- Push specific commit on the remote branch tracking the current branch
- Push dfferent variants to different remotes
- How do I push an image to my NON-public repo in dockerhub
- Android push notifications not receiving/not sending
- Push remote specific branches with different names
- Sending push notification using Parse SDK on Android
- git fatal error when pushing md file to Github
- Avoid memory leak in subscription for baconjs
- How do I place my entire WordPress installation under git control?
- pushlet vs long polling as a push technology
- IOS Missing Push notification entitlement
- can't push huge git commit
- Git push to TFS stop on 100 percent
Related Questions in PRESENTVIEWCONTROLLER
- Confirmation for deleting a post in Table View Cell?
- Presenting a View Controller with a button in a UITableViewCell programmatically (Swift)
- Dismissing presented view controller returns to root view of navigation controller
- Present a ViewController as a popover
- What happens to a View Controller after it has modally presented another View Controller
- swift3: How to Present xib to viewcontroller
- UIPopoverPresentationController/UIPopoverController loses backgroundColor on interface rotation
- dismissViewControllerAnimated:completion: on iOS 8
- Presenting a XIB View Freezes
- Error while presenting a view controller
- Open UIViewController modally from tab bar with transparent background and transition style
- Why do my UICollectionView support methods only invoke when my ViewController is set as Initial View Controller?
- presentOpenInMenuFromRect not working DocumentHandler.h - QuickLook
- Push/Present a viewcontroller from right,the viewcontroller cover 3/4 part of previous viewcontroller
- How to cancel PresentViewController animation
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Select the view controller in Storyboard. Goto Attributes Inspector -> Simulated Metrics -> Size -> freeform
Change the width of the B view controller to whatever you want.