The first line returns a view controller called 'tbvc' with retain
count 1. The second line adds tbvc.view to superview. It increases
tbvc.view's retain count to 2. On the third line, the view controller
itself is released. The retain count is 0 and it's deallocated. The
view controller itself should not be deallocated, unless you don't use
it any more. So you should have a property points to this view
controller and hold it until you don't need it any more.
> --
>
> You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
> To post to this group, send email to
iphonesdkd...@googlegroups.com.
> To unsubscribe from this group, send email to
iphonesdkdevelop...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/iphonesdkdevelopment?hl=.
>
>
>