Interface Builder in Xcode since some time saves to me a lot of time in work on a standard layaut of elements of the interface and sometimes helps with a problem of prototyping. From version 6 in Xcode added a feature for a render of the custom work line racks marked with the IBDesignable attribute and also display in a bilder of the fields of a class marked with the IBInspectable attribute.
From the Xcode 7 version this feature became more or less possible to use therefore I wanted to check its opportunities.
It is possible to esteem about IBDesignable/IBInspectable here and here.
1 year, 9 months ago
Sometimes for convenience, sometimes to bypass a bug in a framework, and sometimes just from a hopelessness, it can be necessary to redefine behavior of some method of the class created by someone another. Method Swizzling allows to change a method for yours directly in runtime, besides leaving original implementation available.
On Tuesday Rambler.iOS V which we announced on Habré earlier took place. Experiment with breaking one very large subject on eight reports connected among themselves perfectly took place — thanks to such granulirovannost speakers could concentrate on the aspect of VIPER and prepare really powerful performances.
1 year, 10 months ago The publication of the source code of the swift language became a reason for writing of article — it became interesting to me to get acquainted with it closer. At once similarity of syntax with other young programming language under the name rust was evident, besides behind similar syntactic constructions also the similar scope of these languages was browsed. Both languages have strong static typification with a local output of types, both are compiled directly in machine code. Both those and other languages absorbed in themselves many acceptances from the world of functional programming. And swift and rust have means for start of the code written on C that allows to write without effort wrappers over a huge number of libraries. Both languages are considered as replacement to the existing system C, C languages ++, ObjectiveC. So in them the general and what differs?
1 year, 10 months ago
With development of smartphones many tools were developed in recent years to simplify life to developers, having provided them with the maximum performance and quality. To borrow leading positions in App Store today not a simple task. And to teach to be scaled your application even more difficult. When millions of users use the application, you have to monitor the application and if necessary execute all operations instantly. Therefore one of problems which many developers face is Database. It really causes a severe headache for each of us, and I think that today you have only two options: SQLite and Core Data. I was a great admirer Core Data and its capability to work with records and the remaining data, but I understood that I for nothing spend a lot of time, working with it by applications programming. Recently, I faced Realm, new best replacement of SQLite and Core Data.
1 year, 10 months ago
Hi everyone! No, it is not the next post in style "meet Swift and its opportunities", and rather short digression on practical application and subtleties where protokolo-focus of a modern language from Apple allows to do nice and convenient things.
1 year, 11 months ago
With an output of iPhone 6s and iPhone 6s Plus, the Apple company provided us absolutely new method of interaction with our phones: gesture of strong clicking. As you know, this function is already available on Apple Watch and MacBook and in MacBook Pro under the name Force Touch. It — literally — added new concept to the user interface.
If you ask a question why Force Touch was renamed on 3D Touch for iPhone, then you not one such. Shortly after Craig Federigi (Craig Federighi) who was also obviously puzzled with the name provided this new opportunity, there were many guesses. What did not arrange the name Force Touch with? It is too much jokes from Star wars?
But there is a difference! It is obvious that Force Touch can recognize only strong clicking whereas the 3D Touch function более sensitive and can select several levels of clicking how strongly you click.
1 year, 11 months ago
How self and _cmd appear in a method? How dispatch table and categories works? What is a meta-class? How many actually methods at your classes in ARC and in MRC? How swizzling works? Interestingly? Welcome under kat!
ATTENTION! This article is not expected beginning developers … I apologize for the fact that I do not consider many moments which the developer has to know Objective-C.