Showing posts with label XCode. Show all posts
Showing posts with label XCode. Show all posts
Monday, June 3, 2013
The LLDB Debugger
Itt van egy tutorial. Amit pedig kerestem az a bt (gdb-ben meg backtrace is mukodott, de lldb-ben mar csak a bt).
Monday, November 9, 2009
Thursday, July 9, 2009
UITableView
A header file-ban meg kell adni, hogy a Controller implementalja a UITableViewDataSource protokolt:
@interface TestViewController: UIViewController <UITableViewDataSource> {}
implementalni pedig a numberOfRowsInSection-t kell ami meghatarozza, hogy hany cella lesz a TableView-ban, illetve a cellForRowAtIndexPath-ot, ami kitolti a cellat.
Ha le akarjuk kezelni a cellara kattintast, akkor a UITableViewDeleagate protokollt is be kell venni az interface-be es ebbol a didSelectRowAtIndexPath-ot kell implementalni.
Labels:
TableView,
UITableView,
XCode
Loggolas XCode-ban
Ahhoz, hogy lassuk amit logolunk be kell kapcsolni a Debugger Console-t.
NSLog
Logs an error message to the Apple System Log facility.
void NSLog (NSString *format, ... );
Discussion
Simply calls NSLogv, passing it a variable number of arguments.
Availability
- Available in iPhone OS 2.0 and later.
format specifiers:
%@ Object
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
%lld long long
%llu unsigned long long
%Lf long double
XCode: Ugras a header file megfelelo reszere
Ha az implementation-bol akarunk a header file vonatkozo reszere ugrani, akkor a cmd-t nyomva kell duplan kattintani a kivant reszre.
Labels:
XCode
XCode-bol ugras a Documentation-be
Ha ax XCode-ban lenyomva tartjuk az alt gombot, akkor a kurzorbol egy kereszt lesz es ha igy duplan kattintunk valamire, akkor az felhozza a documentation vontakozo reszet.
Labels:
documentation,
help,
XCode
Subscribe to:
Posts (Atom)