I am writing an app that has various layouts for an 'event'. The required labels and TextFields are provided through an API call to a web service.
Is there any way, either by code or 3rd party framework, to dynamically create a view layout like this?
I have looked at Eureka which looks like it will do half of what is required. However, I do not use storyboards and I need other controls on in the view so I need to add a Eureka form as a subview which I can't get to work. Also, Eureka is based on TableView and I need the flexibility to layout some textfields side-by-side.
You might want to check Neon. It offers dynamic layout without springs and struts or programatic constraints.
I found another Layout library for implementing iOS user interfaces using runtime-evaluated expressions for layout and XML template files.
Related
I develop an app for online shop that should has some design features that I don't know how to implement. Lurking for it second day, but no profit. I suggest, that it should be the simple CV with some custom cells for different needs (banners, products).
Problem - design has scrollable horizontally content in each section and I see no simple way to implement it instead of writing custom flow layout.
I tried to make a tableView with collection view in its rows, but its not working correctly.
May be you know some examples of implementation of same thing in swift or a good way to make such feature without flow layout?
Refer mention link May be help you from this link:- https://ashfurrow.com/blog/putting-a-uicollectionview-in-a-uitableviewcell-in-swift/
I am working on a project where I need to display information in a similar fashion as the well known Calendar apps from Apple do.
I'm trying to figure out whether I should use an UICollectionView or a UITableView as a base class.
Which one is better fit for the task, why? Possible alternatives?
You can achieve similar look with UICollectionView with a custom layout. There's a great example, matching your target, in Custom Collection View Layouts at objc.io.
I have been combing the web on how to add custom views to a UIScrollView with interface builder but have not found a single clear example on how its done. What I want to do is create views using interface builder and display each of the views within the scroll view as pages. Most of the examples work with images, increments, and programmatically creating colored views for the pages in the scrollview. Does anyone know how to create pages for their scrollview using interface builder? If so, would anyone be willing to share an example on how to do this?
You need to use uipageviewcontroller for this project. It creates exactly what you want. Here is a clear example in a form of tutorial as you requested which you may like to look at:
http://www.appcoda.com/uipageviewcontroller-tutorial-intro/
And here is the link to the doc's from apple
http://developer.apple.com/library/ios/documentation/uikit/reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html
I am working with a storyboard, and I have some pages on the app that have content. Instead of manually creating styles for headings, and texts by using the right side of the screen little color/font editor, is there a way to just create a single style and use it throughout those content pages?
Thanks!
Since you only want the styles to affect some of your labels, I would suggest creating a subclass of UILabel for each different style you want. In each subclass, implement the awakefromNib method to set the style properties of the label. Then, for each label you want to have the style applied to, set the class in interface builder to be your subclass
Yes there is, but it would require you to use a stylesheet framework.
For example, three20 has a TTStyle framework, which is really good at creating style classes that you can apply to labels, buttons, and views.
http://three20.info/
Check out this tutorial:
http://www.mattvague.com/three20-stylesheets-tutorial
I believe Nimbus Kit also has a style library, but I have not explored it as much:
http://nimbuskit.info/
Is there an easy way to a Settings.bundle style form in an app? I have seen InAppSettingsKit, but I just want to create a form for data entry that has some nested pickers and other features simple to implement with Settings.bundle.
It is very easy to achieve, the settings screens are simply grouped table views with the standard styling.
With storyboards, the "static" content feature makes it even easier - this mode allows you to specify the contents of each cell right there in the storyboard, you don't need any datasource methods and can do it all via outlets. There is a good tutorial on Ray Wenederlich here