Tag: xcode

Cannot reference a local function error in Xcode 6 beta 6

I have just updated to Xcode 6 beta 6 from beta 4 and I am receiving an error that I don’t understand. I am getting the error ‘Cannot reference a local function from another local function’. var alert = UIAlertController(title: “Start Over”, message: “Are you sure you want to start over? This will erase your […]

UITableView in table view's headerView

Relating to UITableView sections to always stay within view but I got an idea I’m not sure of: Has anyone ever tried to nest a UITableView in another UITableView, whether by putting the second one as the tableHeaderView or as a section header of the first one?

cocos2d & TexturePacker: initWithSpriteFrame consuming 16 Mb of memory for a small file

I’m trying to understand why allocating 5 small CCSprite assets via initWithSpriteFrame is consuming 16Mb of memory in my application. These 5 small sprites are each a mere 24Kb in .png format, but then packed into a pvr.ccz file via TexturePacker. Here are my settings: The entire size of the pvr.czz file is 2.5 Mb. […]

The tab bar is shifted down outside the borders of the simulator

I have created an empty project (XCode 4.2 IOS SDK 5), I have added a new view to it and make it the root view controller inside the appDelegate, so when the app runs, it displays that view correctly, however, I added a tabbarcontroller to the view, created an IBOutlet for it inside the newly […]

Basic Registration Page – iOS

I am a complete beginner with iOS (started yesterday). I am trying too create a simple register page with text boxes and labels. I have done this with a UITable view – which looks pretty decent for a first attempt. However, I am facing an issue where the bottom values on my form are hidden […]

XCode / iOS: Iterating through all instances of a given class?

I am working on a 3d game engine for the iPhone and Im currently working out how Im going to be handling all of my 3D objects. I have a class that holds information pertaining to each 3D object such as vertexdata, texture information, etc. I also have a method that is called once every […]

Pop up Animation with UIVisualEffects is disabling button underneath

I am trying to add a pop up with a blurred view behind it to hide the view controller content. However the button to access this pop up is positioned underneath the blur effect which is disabling the button. Does anyone know how to fix this? Heres my code: import UIKit class View2: UIViewController { […]

ABPeoplePickerNavigationController display all contact data in a single cel

Hi i am developing a app where when i click contacts it goes to ABpeoplePicekrNavigationcontroller and display all contacts in the form of list in the table.But i want to select all contacts so that i want to perform some action.So how can i achive this. I am not sure this is the right question […]

incrementing variable names in xcode?

This question already has an answer here: Objective C Equivalent of PHP's “Variable Variables” [duplicate] 2 answers

Using UITableViewCell in a UITableView

I’m a little confused with something. I’m trying to create a custom cell and I want to use the interface builder way. The normal way I create a table is to have the table as: .h @interface AssessList : UIViewController { IBOutlet UITableView *tblAssessList; } @property(nonatomic, retain) UITableView *tblAssessList; @end .m – (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView […]