i want to delete uicollectionview cell like apple iphone providing delete app from home screen
any one have idea or demo please help
Related
On a test drive app, I have a basic UIViewController (QZTestViewController) loaded with its xib file with only one UILabel centered by autolayout. This controller is opened from the home controller (QZHomeViewController designed in the default storyboard).
The problem is that the height of this label is smaller that the result on the simulator. See it in XIB/Simulator comparison snapshot.
Any idea ? A small test project is available here if someone can have a look and help me before I become crazy.
PS: Note that the simulated metrics is set to iPhone 5.5-inch in the XIB file and I run the simulator iPhone 6s Plus (9.3).
From the size of the status bar items on the Simulator (and double-checking your project), I can tell that your app is being upscaled to fit the screen. This is happening because it's not properly configured to the 4.7" or 5.5" screens.
To fix that and make it load with the correct resolution, simply add a LaunchScreen storyboard to your project. Go to your project settings, select your Target and in App Icons and Launch Images select a storyboard or xib file to Launch Screen File. This will make the app compatible with the larger screens' resolutions, and your button will have the correct size as it will not be upscaled :)
I do all my work on a 13" macbook and there are times when I need to send the designer screenshots of the ViewController I'm working on. Usually I have to take multiple screenshots but I was wondering if anyone knows of an app or a way to do it from Xcode.
Would it be an option to send a screenshot from the simulator? You could run your app, navigate to your ViewController and presse Cmd + S to save a screenshot on your desktop. Here it doesn't matter if the simulator is bigger than your screen, the screenshot will always show the whole ViewController.
Apple recommends to use a single storyboard for universal apps through size classes.
Now I am trying to adapt the UI depending on the device, which has worked quiet well so far. The only problem I'm facing is how to assign the specific segues.
For instance the settings, which in my App consist of only two tableview cells, should be made visible via a "present as a popover" on the iPad and a regular "show (e.g. Push)" segue on the iPhone.
Is there any way to define it just like that using storyboards or do I need to write supporting code?
Nick
In WWDC session Apple engineer used "Present as popover" segue.
This one shows view modally on iPhone and popover on iPad. Though, you'll have to write some code to show Back button on iPhone.
If you need to have popover and push segues, I'd do that in code this way:
Make 2 segues 'Present as popover' and 'Show'
Set up segue identifiers
In code identify whether app running on iPhone or iPad
Launch correct segue
I'm running xcode 4.5.2 to write an iOS app for both iphone & ipad ("universal" app).
I'm able to use the iphone storyboard to drag & drop buttons, labels, etc onto it. In fact I have functioning code on the iphone side.
However, since the beginning, I have not been able to drag & drop anything onto the ipad storyboard. When I try to do so the buttons, labels, etc just "bounce off".
Is there a way to reset the iPad storyboard so that I can get a clean start? It potentially could be that I had mistakenly (this is my very first iOS app) dragged a view or view controller onto the ipad story board. I tried deleting it but the whole ipad storyboard disappears after that.
It is probably something very simple but I'm very new to this. Thanks.
You can only drag & drop items into a view if you are in the most "zoomed-in" way of viewing it. Try pressing the "=" in the bottom right corner when you bring up your iPad storyboard (this will toggle between the most zoomed-in and the most previous zoom out). Once it zooms you in all the way, try dropping something onto your view again.
EDIT: Per Xcode 8 Release Notes, Interface Builder should now allow editing at all zoom levels.
I am new in ios development.Now,i am developing an Ipad application using ios 4.2 .This ipad application
needs some animation ,that is hide a uiview in button action with some animation(ie. hidding slowly).How to implement this animation?
Thanks in advance.
As a start, look here: https://developer.apple.com/library/IOs/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/AnimatingViews/AnimatingViews.html