iphone - UDP communication with some interface (using UDP Echo sample code, problem with main.m) -
i´ve downloaded udpecho sample code apple make simple udp "connection" device.. i´m able make "connection" setting ip , port of device on main.m provided. analyzing console i´m getting positive response device i´m sending main.m.
my problem main.m doesn´t load .xib. have tried modify , put uiapplicationmain (argc,argv,nil,nil)
, stuff, in case got default .xib (with prjctviewcontroller ) load don´t response on console. in case there no udp connection @ all.
how can use udpecho sample set simple udp "connection" user interface? simple user being able enter ip , port , getting response device shown in screen. communication not problem, i´m getting responses in console, whole problem setting simple interface while using sample code. don´t know how can "override" main.m load .xib while maintaining connection. i´ve tried pass functions main.m prjctviewcontroller doesn´t seem solve problem. if has example show me or ideas enlighten me i´ll thankfull.
start connection stuff in 1 of app launch, view controller init, or button event delegates. handle connection asynchronously, or in background thread, not block ui thread.
Comments
Post a Comment