The NSTextContainer class defines a region in which text is laid out. An NSLayoutManager object uses one or more NSTextContainer objects to determine where to break lines, lay out portions of text, and so on. An NSTextContainer object defines rectangular regions, and you can define exclusion paths inside the text container’s bounding rectangle so that text flows around the exclusion path as it is laid out. You can create subclasses that define regions of nonrectangular shapes, such as circular regions.
A UIStoryboardSegue object is responsible for performing the visual transition between two view controllers. In addition, segue objects are used to prepare for the transition from one view controller to another. Segue objects contain information about the view controllers involved in a transition. When a segue is triggered, but before the visual transition occurs, the storyboard runtime calls the current view controller’s prepareForSegue:sender: method so that it can pass any needed data to the view controller that is about to be displayed.Continue reading “Objective-C – UIStoryboard segue custom transition”
You have an UILabel and want to know which letter was pressed on touch.
From a question on stackoverflow, I’ve implemented in this fast and stupid way.
Today, how to make a 3d rotation using two UIView.
I want to rotate my view in 3d perspective, but after animation, buttons not responds to touch events.
This happens because after a 3d trasform, the point of view is different, and the frame go out for a walk…
Just for fun, of course, changed default action for the Info Button of Zbar library on iOS.
enjoy nm! \m/
Your project minimum iOS version is 5.0.
You are using SDK 6.1 and want to know if some method or some classes used in project are unavailable for iOS < 6.1?
Since Xcode don’t warn about it… here a trick to warn by yourself!
Today, a simple class to make easily an UILabel letters animation, that scroll in “circular” way.
Using private Framework, in particular SoftwareUpdateServices.frameworkyou can distinguish between carrier network, in particular, if your connection is 3G or GPRS/EDGE, or WiFi.Continue reading “[Objective-C] Network type (WIFI, 3G, EDGE/GPRS)”
today a simple way to get device UID from code because in iOS5, function uniqueIdentifier was deprecated.
Do you want use google speech api to recognize text from a dictate?