last day (14 days later) » 

1:00 PM
0
Q: how to set UIScrollView in universal storyboard with autolayout?

JAY RAPARKAI want to set scrollview in universal storyboard with autolayout and also i search for that but i can't get thoroughly I have the same problem like this question Question. but he is only use iphone size story board but i want to use any height and any width in universal storyboard but when i put...

 
i'm doing this but subview of scroll view i want 2 label with W=50 at top right and top left also 2 label with same width bottom right and bottom left
 
You can do it. Set these two labels rect than you can able to see a warning with yellow color arrow icon besides with scene name listing. Click -> Show misplaced views -> Again click on right side yellow triangle -> Popup appear -> Choose Update constraints and mark Apply to all -> Click Fix misplacement will resolve all layout issues.
 
in right side label gives warning with "frame label will be different at run time"
i set label constraint left 20 and top 20
after left label set with the same top 20 and right 20 than 2nd warning with "2 views horizontally ambiguous"
 
What ever you do changes in frames and subviews, there should not be any warnings in Storyboard. However run your app and post screen shot for that, will help to understand more.
 
1:01 PM
i add my screen shot
right label not appear in preview editor
 
Hi
 
ya friend
you see my screenshot
?
 
No not yet
 
please see i'm searching for that from morning and now it's 7:pm
i want to complete this today
please help me
 
ok let me see
 
1:07 PM
my right label is out of screen at left side same in my question link
at run time
 
You need to set top-left-bottom-right constraint like above image
It will fix your right label to its original place
Also set these 4 constraint for UIScrollView also
 
but this not work with iphone
scroll view i set this 4 constraints
 
Let me check in xcode as per your implementation
I will will give you demo app
 
see first i take top bar
after that scroll view with all 4 constraints
after that take left label with 2 constraints left 20 and top 20
after that take right label with 2 constarints right 20 and top 20
i just set this
if i'm set all 4 constraints to label than i think it work with ipad but not display in iphone
 
hi
 
1:21 PM
ya friend
 
Update right label constraint from storyborad
I am sending a screen shot
If you are going for Universal app then you have to create a variable like this
NSLayoutConstraint *viewWidthConstraint
And update it when ever your UIView is changes
 
its complex from creating 2 story board 1 for ipad and 1 for iphone
because the above screenshot is only work for iphone i want to work with both ipad and iphone
so what's your suggestion
 
Yes you are right
 
i think create app without autolayout
what you say?
 
Yes that would be better
 
1:27 PM
but there is also a problem with landscape and portrait
 
yes, you have to manually check for orientation and update subview's frame - like old days
I haven't tried much with these size classes, For which OS you are developing
 
this is x code 6 beta
with 10.9.4 mac
what ever but it was nice meeting with you
where you from?
hey friend are you there?
 
Hi, Yes i am from Ahmedabad, India. :)
Nice to meeting you too
 
R u gujarati
?
 
Lolz :) Yes
 
1:35 PM
r you male or female because your name not say anyting about you
i'm from rajkot
 
Great, Mehul Patel here.
 
ohhhh
than what is the meaning of kampai?
 
have you been here in ahmedabad?
Kampai means "Cheers!!!"
 
in which language
?
i think you are from chaina or from singapor
 
If you heard about the movie in Hollywood - DespicableMe (Animated) in this movie there is one character (Minion - My Profile picture) use to speak this language. Mix of japaneez
 
1:39 PM
how many years of experience you have?
 
2 years in Objective C
 
and i'm not too hard to watch animated movies
oh its good
in which company you work
because my many friends work in ahemadabad
 
Hold on man - You are interviewing me ;)
 
no man
ok if i'm irritating you sorry
 
Ohk... Just kidding. I am working in Synoverge technologies
 
1:42 PM
k
 
Ok dear, its time to leave office now, Nice to talk with neighbourhood friend. :) BTW we have this chat room, any time want to chat, ping here
Bye
 
k can i say you mehul
?
bye
 
yes sure
 
thank again
and sorry about asking you so many questions
 
Yup, By the way today i have sort of time, So i can not able to figure out your problem
I will sort it out as i get time
 
1:44 PM
no its ok no problem
ok ba bye
 
Ok bye
 

last day (14 days later) »