What is the difference between view.isHidden vs view.isVisible? [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
Can both be used interchangeably or one is preferred over the other in certain situations where one is better?

They are different and not interchangeable.
Like already mentioned in the comments isVisible is not even a part of UIView.
With isHidden you can hide a view, it has a getter and setter.
https://developer.apple.com/documentation/uikit/uiview/1622585-ishidden
isVisible is a property of some classes like NSWindow. It's read only and tells you if the instance is visible on the screen.
https://developer.apple.com/documentation/appkit/nswindow/1419132-isvisible

Related

swift multiple buttons inside table view cell [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How to create view like in image to stretch to all width programmatically
https://cocoapods.org/pods/FlexLayout
I would recommend using something like FlexLayout. It handles laying views out however you determine that you want to lay them out, can handle changing widths, stacking in columns or in rows. Think if it similar to stack views the way you can lay them out. You don't need to use any constraints with this library. (I do not have any connection to the library at all).

Difference between Object and Category? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Difference between subclass and category? Which place used effectively in both items?And difference between category and protocol? Need real time example.
Thanks
Really short explanation. I can point you in a direction at least.
Subclass
Inherit functions of a class. You want to have the same behaviour as the class you just subclassed but with some of your own custom functionality.
Category
Add extra functionality to a class that fits your needs. In other words you could add a method to a class (NSString for example) that lets you count the characters. This can later be called on your NSString class.
Protocol
You can delegate tasks to another class that has set itself as a delegate. You can force classes to implement certain methods.

Indicate if view dissapearing [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to determine if view is dissapearing without additional BOOL field and setting it's value to YES/NO in -viewWillDissapear -viewDidDissapear?
I am trying to determine if view is not dissapearing casued by "back" button (pop to previous controller). Right now I have isNavigationInProgress property that do this for me.
Not sure I understand your question correctly.
However it looks like you are talking about isMovingFromParentViewController, isMovingToParentViewController, isBeingPresented, isBeingPresented and isBeingDismissed properties
These properties allows you to get the cause of -viewWillDissapear and -viewDidDissapear calls.
See more info on Apple site, UIViewController reference

Spacing between two barButtons in Navigation Bar-ios [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
iOS
I have three right bar buttons items in my navigation Bar.
I want to change the default spacing between them to zero, so that all the buttons stick to each other?
You can try adding a spacer (UIBarButtonSystemItemFixedSpace) with a negative value. See this answer for more details.
Another approach could be using a custom item with a smaller size than its content then allowing drawing outside out of its bounds using UIView.clipToBounds property.

trying to arrange items in tableview cell- and they keep jumping [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am trying to create a custom tableview cell
however, all my content inside keeps jumping around
This is how i put the objects in my view
and this is how the view renders during runtime
Why are my labels keep jumping ?
Using auto layout tend to move the objects.
Disable it if you don't really use it and it won't jump.

Resources