For my iphone application that isusing NSStream. I need to use NSInputStream in UI blocking mode so that till the input stream arrives the UI remains blocked as this is my requirement. Though I have scheduled a runLoop to handle the various event types and I am getting these events too. The only problem is that I am not able to block the UI during the receipt.
How can I make NSInputStream/NSOutputStream as synchronous?.
The problem is that at the touch of a UIButton I initiates a streaming call and there is a UINavigationController being pushed at the end of the UIButton touch event code. But I receive the streaming event later and navigationController gets pushed. Instead of this I need to wait for stream to come and then push the navigation controller after that
How can I make NSInputStream/NSOutputStream as synchronous?.
The problem is that at the touch of a UIButton I initiates a streaming call and there is a UINavigationController being pushed at the end of the UIButton touch event code. But I receive the streaming event later and navigationController gets pushed. Instead of this I need to wait for stream to come and then push the navigation controller after that