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.
objectivec
Objective-C – UIStoryboard segue custom transition
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.
Read More[Objective-C] Recognize letter pressed on UILabel
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.
Solution
Objectivec – 3D View Rotation
Today, how to make a 3d rotation using two UIView.
Problem
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…
ZBar, little hack
Just for fun, of course, changed default action for the Info Button of Zbar library on iOS.
enjoy nm! \m/
[Xcode] Warn about new API Classes and Methods
What?
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!
[Objective-C] UILabel letters animation
Today, a simple class to make easily an UILabel letters animation, that scroll in “circular” way.
[Objective-C] Network type (WIFI, 3G, EDGE/GPRS)
Using private Framework, in particular SoftwareUpdateServices.frameworkyou can distinguish between carrier network, in particular, if your connection is 3G or GPRS/EDGE, or WiFi.
Read More[Objective-C] UUID on iOS 5
Hi all,
today a simple way to get device UID from code because in iOS5, function uniqueIdentifier was deprecated.
[Objective-C] Use Google speech on iPhone
Do you want use google speech api to recognize text from a dictate?