- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { }
Wednesday, 26 September 2012
UITableView with static cells not showing
I'm still a noob at Xcode iOS development, and today I was trying to build a nice-looking input/edit form using a UITableView with grouped static cells. It looked good on my storyboard but when debugging the cells just wouldn't show up.
The reason? I was implementing three methods that shouldn't be there at all when using static cells. I deleted them and bingo, it worked. Here they are:
Friday, 14 September 2012
Can't install Xcode from Mac App Store
I needed to do some iOS development yesterday which required direct testing on my iPhone, but since I last connected my phone to Xcode it's OS has been updated which means I need the new iOS SDK, which comes with Xcode.
So I went to the Apple Developer centre, found the download link that opens up the Mac App Store, clicked the 'Install' link and literally nothing happened. No error messages, no download....nothing.
After some googling I pieced together some bits of advice from around the interweb and finally fixed it by typing the following into my terminal, then deleting my existing Xcode.app and Install Xcode.app, and then fully restarting my machine. None of these steps worked on their own, or without the restart!
So I went to the Apple Developer centre, found the download link that opens up the Mac App Store, clicked the 'Install' link and literally nothing happened. No error messages, no download....nothing.
After some googling I pieced together some bits of advice from around the interweb and finally fixed it by typing the following into my terminal, then deleting my existing Xcode.app and Install Xcode.app, and then fully restarting my machine. None of these steps worked on their own, or without the restart!
rm ~/Library/Preferences/com.apple.appstore.plist rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState rm -r ~/Library/Caches/com.apple.appstore rm -r /private/var/folders/*/*/*/com.apple.appstore
Tuesday, 11 September 2012
dmg image data corrupted - dowloading from Virgin Media Broadband
You've probably landed here because you're a Virgin Media Broadband customer and every time you download a disk image file (.dmg) or indeed any large file it appears to be a successful download until you try to open it.
Attempting to mount or verify the image returns "image data corrupted" and the file is useless.
I've had this problem for months on my Macbook Pro, OSX Lion. Downloading from another ISP is never a problem - and today I had to download my new Ruby on Rails IDE Rubymine 4.5.4 (106MB) over 3G with Orange because Virgin Media wasn't playing ball again.
I spoke to Virgin about this problem tonight, and despite seemingly dozens of customers suffering the same problem they don't have a solution. So...it looks like I'll switching my broadband supplier soon.
Update: They sent me to their forum, where I was told to leave a comment on the wrong thread. I eventually found a more suitable thread where I left a comment. This got picked up and they sent out some new kit - a Superhub. Problem solved!
I've had this problem for months on my Macbook Pro, OSX Lion. Downloading from another ISP is never a problem - and today I had to download my new Ruby on Rails IDE Rubymine 4.5.4 (106MB) over 3G with Orange because Virgin Media wasn't playing ball again.
I spoke to Virgin about this problem tonight, and despite seemingly dozens of customers suffering the same problem they don't have a solution. So...it looks like I'll switching my broadband supplier soon.
Update: They sent me to their forum, where I was told to leave a comment on the wrong thread. I eventually found a more suitable thread where I left a comment. This got picked up and they sent out some new kit - a Superhub. Problem solved!
Subscribe to:
Posts (Atom)