I have created a custom UITableViewCell where I add a bunch of buttons loaded dynamically to its contentView. These display properly.
When the data which controls what buttons are loaded change and I call reloadData I can see that prepareForReuse is called:
- (void) prepareForReuse {
NSLog(@"prep for reuse");
[self clearButtons...
I'm working on a touch panel web page (for my home automation) that is going to run on both the iPad and the iPhone. What I'm wondering about is the ability to dynamically set the size of my touch icons based on the screen size.
If I'm on the iPad, I need the icons to be 150px by 150px, but if I'm on the iPhone, I need the icons to be ...
I know this is a somewhat vague question, but during debug execution, the app I'm working on dies without any stacktrace or warning and with simply this message in the debug console:
Program received signal: “SIGKILL”.
I have NSZombieEnabled, NSDebugEnabled, MallocStackLoggingNotCompact and MallocStackLogging all set within XCode....
I current writing a TCP socket using NSStream. I'm able to open the stream but i can't write out anything (eg. a NSString or NSData).
...
I'm writing a little test program where I can look at all the notifications being posted as various actions occur on an iOS devices. Unfortunately, I'm running into a problem where I get an EXC_BAD_ACCESS error when I even try to add an observer to the Darwin notification center. The relevant code is below:
void callback(CFNotificationC...
Hi,
I've scoured the web and stackoverflow for a good SSL tutorial for an iphone app. I have been unsuccessful at finding something straightforward and easy to comprehend. Any pointers on where to read more about it? I just want to see how i can have a secure connection for login and data transfer via SSL. Thanks!
...
I thought I was doing something relatively simple, but I guess not.
Running:
NSLog(@"%f",[[UIScreen mainScreen] scale];
returns 0.000000
The problem is that I am trying to check for a retina display and the:
if([UIScreen respondsToSelector:@selector(scale)] &&
[[UIScreen mainScreen] scale] == 2.0) {
// does not get called on...
Hi all, I'm using fbconnect in my app to connect to Facebook. Whenever i code a feature, I must google to find the form like below:
//////
NSString *event = @"{\"name\":\"A party\",\"start_time\":\"1215929160\",\"end_time\":\"1215929160\",\"location\":\"Somewhere\"}";
NSDictionary *params = [NSDictionary dictionaryWithObject:event forKe...
I am developing an iphone / ipad application. My plan is to have my beta customers use it before I have submitted it to the app store to help me work out all the issues.
Nonetheless, they will be entering real information to the application. Thus, I would like them to be able to back up the application to iTunes using the sync feature. ...
Short version:
Is it necessary or even possible for me to generate a new distribution certificate based on my existing private key, or is there no harm, both for new apps and updates to existing apps on the app store, to generate a new certificate with a new private key?
Long version:
It seems to me that there is conflicting/misleadin...
How to add a UIActivityIndicator to a splash screen ?
Edit : I tried the following things
I created UIViewController Sub class called SplashViewController. and the code is as below, still the image is not persisting long enough .
...
First off I know this has been covered on SO. But the most popular posts I see date back to:
September 2008 - iPhone development on
Windows (over 2 years ago)
February 2009 - The iPhone and a PC? (1 year 8 months ago)
Have there been any developments on this issue since these posts? Am I still just better off trying to find a reaso...
This is a little side project I'm working on for fun.
I begin by initializing with
- (void)viewDidLoad {
[super viewDidLoad];
rootArray = [[NSMutableArray alloc] initWithObjects:@"Earth",@"Mars",@"Pluto",nil];
moonArray = [[NSMutableArray alloc] initWithObjects:@"Clavius",@"Galileo",@"Ptolamy",nil];
marsArray = [[NSMutableArray al...
In my .m file for a class named Ad , I have 3 static strings
static NSSTring *AdStateDisabled = @"disable";
static NSSTring *AdStateExpired = @"expired";
static NSSTring *AdStateActive = @"active";
I can simply use these static variables in the current class, but i cannot call them from any other class, is there a way to make these st...
I have looked around for some resources relating to Apple's StoreKit framework on the iPhone and I really like the way Urban Airship's Store Front works. It is simple to use and the UI is already set up and everything. The problem is, they charge you $0.05 per download.
I have upgrades I would like to sell (basically it would download a...
Hi, i'm have problem with the writing TCP socket in objective c. i'm having the following error when i then to write a string to my server. some help please?
error writing to stream <__NSCFOutputStream: 0x102009f0>: Error Domain=NSPOSIXErrorDomain Code=9 "
the following are my code. Thanks inn advance
- (void)setup {
host = // ...
Hi,
I am working on custom cell in uitableview and trying to add uilabels in the cell but not able to set text on it. Following is how i am trying to add the cell and also how i am adding the text
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"M...
I want to create a view that shows vast amounts of data. Using UITableView would have been a good idea except it's not the way/style I want to show it. I'm thinking of creating my own view, and I was wondering: UITableViewCell is constantly being reused through the dequeueReusableCellWithIdentifier method; how does this work? I mean, I c...
Iam having a very basic doubt in memory management. If suppose iam allocating memory for an object in viewWillAppear method. Should i release the object in viewWillDisappear method or in the release all the objects in the de
...
hi i have a class and want to handle 3 Xib(or nib i dont know difference) files from it i know that 3 files can be handled from 3 different view controller but can it be done from single view controller?
i tried this on a button click
but was no success
-(IBAction)goToNext2{
[self initWithNibName:@"SecondNib" bundle:nil];
...