<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gonzalo Santomé on Medium]]></title>
        <description><![CDATA[Stories by Gonzalo Santomé on Medium]]></description>
        <link>https://medium.com/@santomegonzalo?source=rss-3b70a5bde48e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RPBYeDdg5qm5c6DG.jpeg</url>
            <title>Stories by Gonzalo Santomé on Medium</title>
            <link>https://medium.com/@santomegonzalo?source=rss-3b70a5bde48e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:16:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@santomegonzalo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[iOS 7 Auto Layout]]></title>
            <link>https://medium.com/@santomegonzalo/ios-7-auto-layout-3e50cd1d1278?source=rss-3b70a5bde48e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e50cd1d1278</guid>
            <dc:creator><![CDATA[Gonzalo Santomé]]></dc:creator>
            <pubDate>Fri, 24 Jan 2014 13:06:39 GMT</pubDate>
            <atom:updated>2014-05-21T18:02:50.959Z</atom:updated>
            <content:encoded><![CDATA[<h4>changing sizes of UILabel</h4><p>I had some apps for iPhone and yesterday I decided to upgrade to iOS7 and make some modifications to be more friendly.</p><p>So I started with <a href="https://itunes.apple.com/ar/app/id624658893?mt=8">ToWatch</a>. First I enabled the setting AutoLayout because the people said that is awesome how it works… in my opinion start with AutoLayout is a pain, but when you know exactly how is it, you will save a lot of time.</p><p>For example, “I want to change the size of the UILabel if the text is more than one line”, if you make a search of this in Google you will find different ways:</p><ul><li>change the line number to 0 (zero)</li><li>get the size of the font, and then calculate the size that your text will have with the font number and then change the frame with this height</li><li>change the frame with a max number and then make a new UILabel with this max height and see how much is the real height and then change your original UILabel with the new height.</li><li>more and more and more and more…</li></ul><p>All of this items didn’t work for me… I spent hours and hours and nothing change. So I start to said “Apple sucks”.</p><p>At the end of the day (without the changes) I don’t know why I disabled AutoLayout for the View, and everything start to work, but I WANT AUTO LAYOUT. So this is how I fixed the problem. Now is not necesary to change the height programatically, you can do it with auto height ;).</p><p>So if you click your UILabel in the Interface Builder you will see four icons at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2AHYZKD2EIp3SNrKLR5eQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*jl-oPjDlc1aBiivE24xg9Q.png" /></figure><p>Then click the second icon with the name “Pin” and you will see this menu.</p><p>Now check the property “Height” and set a height… I set 20 because this is the size for one line.</p><p>Don’t forget to click “Add Constraints”</p><p>So now you will have your first contraints on your UILabel. This will tell to xCode “don’t modify the height… the height always will be 20px”, so now in the “Document Outline” you will see that your UILabel have an arrow in the left side, open it and open the group “Constraints”, and click on “Height — 20 — name of the label”. Now you will see in panel Utilities that you have some stuff about the constraint. Open the dropdown “Relation” and select “Greater than or equal”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*_gBNxqQi2vkxSf0Xy1df3w.png" /></figure><p>And done! now if the text inside UILabel need more space to fit xcode will change the height to make it bigger and fit the text.</p><p>If you enjoyed this, you should <a href="https://twitter.com/elgoni">follow me on Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e50cd1d1278" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS3 Animations]]></title>
            <link>https://medium.com/@santomegonzalo/css3-animations-5289c8e697c2?source=rss-3b70a5bde48e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5289c8e697c2</guid>
            <dc:creator><![CDATA[Gonzalo Santomé]]></dc:creator>
            <pubDate>Thu, 05 Dec 2013 14:54:14 GMT</pubDate>
            <atom:updated>2013-12-09T14:01:03.386Z</atom:updated>
            <content:encoded><![CDATA[<h4>Adobe Edge Animate CC vs Native CSS3</h4><p>Yesterday one of my clients sent me a new web site to create the mockups and structures. The website was ok, but she said “I want animations, I want a rich site, could you move the clouds? could you make some animations with this images like flash? (I will show later the images)”.</p><p>Obviously I said “Yes of course, let me work on it”. I made the animations to move the clouds behind with CSS3… it was really easy… but the real problem was with images that she want like flash… this is the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*SoEPE9otQ80vAXThhMj_2g.png" /></figure><p>I asked her “ok how you want to make the animations because you are the designer”… and she said “First show 1 and 2, then the arrows one by one, then show the titles, then show white dots, then show pink dots, move pink dots, move a flare over white lines”… ( =| my face in that moment )… could you imagine making this animation with css3?</p><p>I read about some apps to make animations without flash, so i found Adobe Edge Animate CC (<a href="http://html.adobe.com/edge/animate/">http://html.adobe.com/edge/animate/</a>). I got the trial version to make some test because I don’t like this kind of app… because I’m loosing the control of the code and I don’t know what happen behind (this is why I hate .NET). So I started spliting all the images and then create a project on Adobe Edge Animate.</p><p>When you open the project you will say “This is flash or After Effects?”… I started to make animations like opacity, background position, top, left and when I saw the final version it was OMG! it’s amayzing how it’s works! and took me like 20 minutes.</p><p>I tried to read how they made all the animations and it was really difficult but I understand they don’t make the animations with CSS, they make all the animations with javascript so you can create really easy your plugins to interact with the animation, like Start, Stop, Reset.</p><p>Could you imagine the face of my client? she love the animations!</p><p>I really recommend this App for edge cases like my case.</p><p>Thanks for reading!</p><p>Website: <a href="http://www.solage.com.ar/">http://www.solage.com.ar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5289c8e697c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>