Warning: Constant ABSPATH already defined in /var/www/html/site/wp-config.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-content/plugins/comet-cache/src/includes/traits/Shared/HttpUtils.php on line 172

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-content/plugins/comet-cache/src/includes/traits/Shared/HttpUtils.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-content/plugins/comet-cache/src/includes/traits/Shared/HttpUtils.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-content/plugins/comet-cache/src/includes/traits/Shared/HttpUtils.php on line 175

Warning: Constant WP_DEBUG already defined in /var/www/html/site/wp-config.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Undefined variable $phpexec_output in /var/www/html/site/wp-content/plugins/phpexec.php on line 68

Warning: Undefined variable $phpexec_output in /var/www/html/site/wp-content/plugins/phpexec.php on line 68

Warning: Undefined variable $phpexec_output in /var/www/html/site/wp-content/plugins/phpexec.php on line 68

Warning: Undefined variable $phpexec_output in /var/www/html/site/wp-content/plugins/phpexec.php on line 68

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/site/wp-config.php:30) in /var/www/html/site/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"id":324,"date":"2011-06-16T20:17:02","date_gmt":"2011-06-16T19:17:02","guid":{"rendered":"http:\/\/www.trappers.tk\/site\/?p=324"},"modified":"2012-05-19T09:02:19","modified_gmt":"2012-05-19T08:02:19","slug":"mainwindow-xib","status":"publish","type":"post","link":"https:\/\/jeroentrappers.be\/site\/2011\/06\/16\/mainwindow-xib\/","title":{"rendered":"MainWindow.xib"},"content":{"rendered":"

[Update: I added a screencast <\/a>of the process]<\/strong><\/p>\n

[Update: Interesting discussion of this post over on StackOverflow<\/a>]<\/strong><\/p>\n

In the XCode 4.2 beta, MainWindow.xib is no longer included by default in some project templates. This means that you have to get your application to work by writing some code, using another method, or by manually reconstructing MainWindow.xib. This post shows the latter. Let’s get started.<\/p>\n

\"Start<\/p>\n

If you create a new project in XCode 4.2 beta, and choose the Empty Application template to start from, change nothing and try running it in your iPhone 5.0 simulator, you will see an empty – black – screen. The only thing you get from the template is an xAppDelegate.h<\/em> and .m<\/em>.<\/p>\n

We will now reconstruct our own MainWindow.xib, to get started with development the way you’re used to. So the next thing we do is add a New File to the project.\u00c2\u00a0Choose iOS > User Interface > Empty<\/em> as template. \"AddNext, choose iPhone, next give it the name MainWindow<\/em> (.xib will be added automatically). By the way, the name of the file is not very important, but it’s nice to choose MainWindow<\/em>, because that’s familiar.<\/p>\n

Select the new File we just created. What we have now is an empty design surface, in what used to be Interface Builder. Here we’re going to change some things.<\/p>\n

\"The<\/p>\n