//////////// UPDATE! //////////////////
So I looked around on the net and after finding a few formulas and testing. I found a formula that works.
1. Reverse the card number
2. For every other digit double the number
3. For the digits that you didn't double, add them in the new "doubled" string
4. Add all the numbers up together - O...
I created a custom UITableViewCell class with a UIButton, a UIImage, and two UILabels. The button and the image are overlayed on top of each other, and only one is displayed at a time. The expected behavior is you touch on the button, the button disappears, and it displays the image. The UITableViewCells are set to be reused. Here's ...
I'm loading a grayscale png image and I want to access the underlying pixel data. However after I load get the pixel data via CGImageGetDataProvider, the length of the data returned is longer than expected.
CCGDataProviderRef provider = CGDataProviderCreateWithFilename(cStr);
CGImageRef image = CGImageCreateWithPNGDataProvider(provide...
Hello All...
Some of our application is already in AppStore...
But suddenly one thing comes into my mind, that I want to clear before submitting my next application.
The thing is : As a programmer's point of view, should we require to handle if iPhone Device is jailbreaked ? If yes, then how we can tackle with this ?
Thanks in advanc...
Getting error in this line ,
NSString *nmm =[narr objectAtIndex:1];
error shows:
'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'
...
Hi
I have a class DataObject as
Header :::
#import <Foundation/Foundation.h>
@interface DataObject : NSObject {
NSString *erorrMessage;
BOOL hasError;
NSDictionary *dataValues;
}
@property(nonatomic, retain)NSString *erorrMessage;
@property(nonatomic)BOOL hasError;
@property(nonatomic, retain)NSDictionary *dataValues...
How to get image from server using JSON parser.
plz if possible post piece of code.
Thnks in advance..
...
Hi friends,
I have a folder structure at server side. Inside the folders there are files of all format like .txt, .pdf. I get the structure in XML format.
Now I want to create the same folder structure that is present in server side at my iphone documents folder with only the names of files inside it and not the content of the files.
...
My project compiles and runs fine unless I try to compile my Unit Test Bundle it bombs out on the following with an "Expected specifier-qualifier-list before 'CGPoint'" error on line 5:
#import <Foundation/Foundation.h>
#import "Force.h"
@interface WorldObject : NSObject {
CGPoint coordinates;
float altitude;
NSMutableDicti...
I cant seem to wrap my head around this. I have googled, and overstacked for hours now looking for examples that i can relate to. What I have is two arrays.
The name of my first NSMutableArray is "showDates".
I have 3 objects in here.
Object 0: "Today, May 20th"
Object 1: "Tomorrow, May 21st"
Object 2: "Saturday, May 22nd"
Then I hav...
Hello all,
I am new to iPhone programming and working on my first real application (i.e. one not written in a book or online) and I've run into a small problem which I could solve a multitude of ways, but feel like there should be a good solution that perhaps I am just missing.
Here is the scenario: I have a UITableView with a bunch of...
Can anyone please, oh sweet pain, please take me out of my misery by writing a simple example on how the heck you pass a number (int value) which gets created in 1 .m file to another .m file.
In the apple demo application called QuartzDemo, there is a file called QuartzImages.m
This file has the following line of code:
[CODE]CGPDFPageR...
Hey there,
I'm trying to get the name for an iPhone/iPod device that the user entered in their iTunes. This is not, I repeat, not, necessarily what [[UIDevice currentDevice] name] returns (or any of its other methods).
For instance, my iPhone is bound in iTunes to "iPhone 3G de Christophe…", to differentiate it from my wife's and othe...
how to create SQl statement for update using 'where' condition with 'name', how to bind this name to sql statement...
///example
const char *sql = "update profile set name = ? ,Lname = ?, date = ?,phno = ? ,image = ? , id= ? where **name=?**;";
...
Hi,
I am an .Net Expert but a new to the IPhone App Development. Recently I have started workinf on Objective - c.
I need a help I need a example which shows a Login Screen and then Navigates to the another Screen (UITableView) when username and password and found correct.
As of now I am assuming that username and passwords are hardco...
In my AppDelegate I create an NSFetchedResultsController with sectionNameKeyPath set to @"group".
In viewWillAppear in my TableViewController I performFetch, then call a method called findGroups.
findGroups does some complicated analysis of the entire dataset to identify groups, then sets the "group" transient property on each object to...
I'm starting a new app, and I'd like to know how to require a password to open it. I've been researching on Google and the Apple Dev Forums and haven't found anything.
I was considering a UIActionSheet in the application didFinishLaunchingWithOptions method of the app delegate implementation file, but am unsure how to go about doing so....
Hi I am new to iPhone Progrmamming. Can anybody please tell me from where to learn implemetation of MVC in iPhone.
Thanks
Gurpreet
...
I created a View based application in which i want to navigate from one view to another on a button click but i cannot find the right method??
is it only possible in navigation based application??
i tried addsubview method but still not working??
what is the right method to accomplish this??
...
When i try to update a data after searching another the data is overwritten on the last searched data. i tried to release the previous data still same problem persists. how do i solve this?
...