Hi
somehow I managed to screw up my XCode project settings when compiling for the iPhone.
It fails when linking saying that
ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/AddressBook.framework/AddressBook, file is not of required architecture
... (same for ...
I've been asked by a number of unfortunate iPhone users to help them restore data from their iTunes backups. This is easy when they are unencrypted, but not when they are encrypted, whether or not the password is known.
As such, I'm trying to figure out the encryption scheme used on mddata and mdinfo files when encrypted. I have no prob...
Like the title says I want to use a color code instead of doing something like this
lblTemp.textColor = [UIColor colorWithRed: 0 green:0x99/255.0 blue:0 alpha:1.0];
for instance I have the following colorcode #30ae36 how can I use this one instead of doing the above.
...
Hey guys, I have a protocol which defines a number of ObjC-2.0 properties, like so:
@protocol Repeatable <NSCoding>
@required
@property (nonatomic, retain) Date *startDate;
@property (nonatomic, retain) Date *endDate;
@end
I have another class that implements the protocol:
@interface AbstractRepeatable : NSObject <Repeatable>
And f...
Error:
[__NSCFDate drawAtPoint:]: unrecognized selector sent to instance 0xd251e0
Termininating app due to uncaught exception 'NSInvalidArgumentException'
Scenario:
for the most part this works. But I notice this error, even on the simulator, when I swapping UIImages, slowly, but consistently.
For example, I have a retained reference t...
In regards to this posting http://stackoverflow.com/questions/1481871/why-does-self-protect-memory-space/1481882#1481882, I'm using 'self' to access aArray. Yet, I still get an invalid object in the didSelectRowAtIndexPath: method.
In the root controller, I access aArray like this:
MyAppDelegate *theDelegate = [[UIApplication sharedAp...
Hi,
I was wondering if it is possible for the app on the client to be able to read the data in the payload when an APNS notification is sent?
For example, if the APNS notification said "Hello world!", and the user clicked 'View' to go to the app, would there be a way for the app to see that the APNS notification said "Hello world!".
...
I have a CSV file containing data.
I want to load it into a Core Data managed sqlite db.
I just ran one of the sample Core Data Xcode apps and noticed it created the db file.
I noticed table names all started with Z and the primary keys were stored in separate table so from this am I right in presuming that just importing the CSV data d...
I'd like to create a reusable UIViewController subclass that can be shown as a modal view controller over any other view controller. One of the first things this reusable VC needs to do is pop up a UIActionSheet. In order to do this, I create a default (blank) view in my VC to show the action sheet from.
However, this looks bad because...
Let's say I have an object called Person.
Person internally loaded an UIImage called "person.png".
In my app i create many Person objects, creating and even deleting them at runtime.
Since a Person object internally has a retained reference to UIImage, does this mean each Person has a unique memory allocation for the image?
Or do all ...
I have to develop an application "Behavior like an Tetris game".
I have never used "OpenGL" for the iPhone application developement.
Application is something like this
Red / green / blue square boxes drop from top
Red + Red + Red = Points & boxes disappears
same way user has to make combination & get points
Different levels are ther...
I have a NSDictionary that is passed from the main thread to a second thread which retains, uses, then releases the variable.
What if the main thread autorelease pool is drained while the 2nd thread is still using the variable? Even though I have retained the variable in the 2nd thread, will the main thread's pool know that its still be...
In my class object i've defined a (nonatomic, retain) property for UIImage.
I assigned this property with an image loaded via
[UIImage imageNamed:@"file.png"];
If at some point I want to reassign this property to another image, should I have to release the prior reference?
I am confused because by the retain property I know i should ...
Hey Everyone,
Was wondering if someone might know the answer to this question - is there a cost associated with over hiding a layer.
For example, if a layer is already hidden, does calling layer.hidden = YES over and over have any more overhead than simply stepping through the call stack? Is Cocoa smart enough to know that the layer i...
Is there any way to resume iPod audio after mpmovieplayer finishes playing? Can't seem to get a handle on how to do this elegantly (slow volume up).
Is there any built-in way?
Or, if I use MPMusicPlayer like I am now, stopping and starting the audio abruptly, could this be grounds for app rejection?
Thanks.
...
This could be me doing the design pattern wrong.
I'm implementing asynchronous delegation in an application that uses NSURLConnection. An object wraps the NSURLConnection and handles its delegated messages; that works fine. Now I'm defining my own delegates in the object that uses it (NSURLConnection messages ConnectionWrapper, Connecti...
I have a UIViewController that I'm using to control a "pop-up" view for viewing images throughout my application. It supports autorotation, as it automatically sizes the image to fit properly regardless of orientation. This works perfectly, but only the first time I initialize and display the view controller. When it closes, I am remo...
I have this bit of code that get the image i have picked from the Camera and displays it into a UIImageView. I want to convert the image to a binary string so i can then make a URL call and pass it back to the server. How would I modify this code to get my binary string?
- (void)imagePickerController:(UIImagePickerController *)picker
...
I've a db that contains some accent characters and i've to do an accent insensitive search as fast as possible.
I tried two solutions:
query all possible accent combination. For example:
perche
perchè
perché
pèrche
pérche
pèrchè
pèrché
pérchè
pérché
rewrite LIKE operator where i first replace all accent characters with their respective...
I have a UITextField that I'm forcing formatting on by modifying the text inside the change notification handler. This works great (once I solved the reentrancy issues) but leaves me with one more nagging problem.
If the user moves the cursor someplace other than the end of the string then my formatting change moves it to the end of the ...