243 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
57
views
Snap Kit: java.lang.illegalstateexception: client id must be set?
When I call SnapKit.init() it turns me this exception java.lang.illegalstateexception: client id must be set! ,but I already provide this id in my manifest.xml file and res/values/strings.xml. It's ...
0
votes
0
answers
86
views
How to share a link through Snapchat?
I would like to share a link through snapchat, but is not working. The app is opening, but I got an error on the snapchat view that is says "UH oh something went wrong".
struct ...
0
votes
1
answer
75
views
UIScrollView aligns its content's origin to its bound's center on first render, why is that?
I'm trying to learn UIKit and toying around with a UIScrollView. My goal is to create a UIScrollView that contains an image that I can pan and zoom.
Upon first render, as title says, the image's ...
0
votes
1
answer
122
views
How can I fix "Unable to activate constraint ~~ " error?
I'm trying to make ui using snapkit and practice MVVM pattern, but when I try to add stackview I keep getting an error that says
'Unable to activate constraint with anchors <NSLayoutYAxisAnchor:...
0
votes
2
answers
290
views
How can I make a transparent outline for circles so that the background shows through?
How can I make a transparent outline for circles so that the background shows through? Like this:
I tried using a mask, but this code does not work ...
Perhaps there are some other solutions?
My code:...
0
votes
2
answers
145
views
UICollectionView - scrolling not inside, but in whole screen
I'm building my first app in Swift. I have RestaurantViewController. Half of the screen is filled by restaurant name, description, logo, atd.
And under this I have UICollectionView(), filled with ...
1
vote
1
answer
174
views
How to push another page in iOS programmatically?
I am working with one project on Xcode with SnapKit and without storyboard.
I didn't touch AppDelegate.
I have this code on SceneDelegate.
import UIKit
class SceneDelegate: UIResponder, ...
1
vote
1
answer
176
views
How to get off the floor by half the height of View using a snapkit
'UIView' is displayed using the snapkit (assuming 200 heights)
Use "equalToSuperview" to secure it to the floor
I want to lower the Y axis of the UI view to half the height.
self.tempView....
1
vote
1
answer
512
views
Adjusting ContentView size using SnapKit
When using Auto Layout my code would look like this:
let safeAreaLayoutGuide = contentView.safeAreaLayoutGuide
let bottomAnchor = userImage.bottomAnchor.constraint(equalTo: ...
0
votes
1
answer
224
views
Is using SnapKit causing memory leaks
I am using SnapKit to handle my AutoLayout. I am wondering does this code cause a memory leak because I am capturing self in a closure?
writtenUpSwitch.snp.makeConstraints {
0ドル.trailing....
-2
votes
1
answer
42
views
How to maintain other label's position?
I'm building an app that can add UILabel(can move with gesture) on UIView.
First, Add a label and move it to another position.
Second, Add another label.
Then makeConstraints have an effect on first ...
0
votes
0
answers
50
views
How to expand and shrink my ViewControllerCell?
So i have this custom view cell, i want to expand it twice his height without his content getting adjust
this is what i was trying to do
import Foundation
import UIKit
import SnapKit
class ...
1
vote
2
answers
128
views
How to push VC from child VC?
I have three UIViewControllers. First one is MainViewController. MainViewController has TabView and, under TabView, childView (UIView). Depending on picked tab, childViewController is opened (on ...
0
votes
1
answer
331
views
How to stretch cell to full screen?
I have a UIView inside a table cell. I need to stretch my cell on full screen.
In my table view I have this:
table.rowHeight = UITableView.automaticDimension
But now I can't to make this.
My code is:
...
0
votes
2
answers
406
views
UITableView self sizing stackView height Constraints issue
I have a problem Self sizing Cell problem.
I want make layout like Feed Content with attached Image like twitter
Profile Image
-
Nickname Label
-
date Label
-
menuBarButton
Vertical - StackView
ᄂ
...