Tag: ios

Trying To Call PList data in a for Loop (iOS)

I have, what I believe to be a simple question with a simple answer that I cannot figure out for the life of me. I’ve created a plist that I’m trying to use to populate a MapView annotation with info. I’ve gone through some tutorials and this is the code I’ve decided to go with […]

Child menus aren't showing up in InAppSettingsKit

I’ve implemented a view that is using an InAppSettingsKit controller, just like the example application shows, but for some reason, I can never access a child screen of any kind. I have even tried adding a multi-select, but when I click on it from the application, it just shows the item as selected, but never […]

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 […]

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 […]

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 […]

IBAction in UIView – Compatible with MVC?

I’m trying to understand the implementation of the MVC-Pattern in iOS Apps with Objective-C. Right now I have a DataProvider object which holds and provides my data to other objects in my application (Model). Furthermore I have a View (.xib) with an additional class (UIView; lets call it “ViewClass”). I told my view to be […]

Using SharedSingleton to attribute value to NSInteger

In my viewcontrollerA.h I have: @property (nonatomic, assign) NSInteger showCommentOrCreate; + (PhotoViewController *) sharedManager; in viewcontrollerA.m I use: PhotoViewController* sharedSingleton = [PhotoViewController sharedManager]; …(long)sharedSingleton.showCommentOrCreate… + (PhotoViewController *)sharedManager { static PhotoViewController *shaderManager = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ shaderManager = [[PhotoViewController alloc] init]; }); return shaderManager; } …to find the value of the integer. In […]