I recently adapted my iPhone Application to use core data; after some research I have found that NSPredicate seems like the best way to handle my database queries.
In particular, my queries will be based on 4 separate attributes.
First, I need to query the database for all entities that have a specific county name. If I search for all en...
I am trying to update my UITableView and the following implementation is not working. I'm wondering if I am doing something wrong?
NSDictionary *newContact = [[NSDictionary alloc] initWithObjects:[NSArray arrayWithObjects:@"Name", @"Phone", nil] forKeys: [NSArray arrayWithObjects:strName, strPhone, nil]];
[arrQuickDialContacts addObje...
I'm currently stuck trying to get my objective c generated files to compile in my iPhone project. Basically it keeps telling me there is no such directory for the following four imports:
Thrift/TProtocol.h
Thrift/TApplicationException.h
Thrift/TProtocolUtil.h
Thrift/TProcessor.h
I'm following all the instructions on the Thrift wiki and...
Hey stackoverflow,
So I have an app that has a login screen with an image and text bars. When I rotate the device, the components rotate, but they are not centered anymore. They just pivot in place. I need them to reposition themselves to the center of the landscape view as well. Can anyone point me to or have an example of how to h...
Hi everyone, I was wondering if I should use an nsdictionary to hold all of the values that my program uses. Or, I could stick with using many variables for each value.
If I use an NSDictionary/array I could release it all at once, rather than a bunch of variables. Unfortunately I am dealing with many memory leaks, so I thought that u...
Hi am curious how I would go about implementing a view like (See below) Similar to the one used for the iPhone photo application. My initial idea was a table view with each cell holding 4 images, can anyone point me in the right direction. I am particularly interesting in using APIs from Apple so not too bothered about 3rd party APIs / C...
Hi,
I was wondering how I can override the UIActionSheet that appears when tapping and holding your finger on a link in an UIWebView (it shows the link and an open and copy button). I need to add a button to the alert, but I don't know how to customize it.
Does anyone have an idea on how to solve this?
...
I'm trying to decrypt RC2 data with only 64 effective bits.
Since I can only have 64-bits, it's my understanding that before calling CCCrypt I must use a method to reduce the key down to this many bits. Since I couldn't find any such method in Apple's CommonCrypto library, I am using this keyschedule method I found.
These are the metho...
Is there any way to change something about a table cell on the iPhone based on the previous or next table cell before that cell is displayed? This might be confusing, so here's an example:
Let's say I have a table like this (I'm just going to fill it with random values, so don't worry about the text contained in the cells):
*Cat
*Rabbi...
Is there a way to get the hex address of an instance object in the debug window of XCode via NSLog?
I have a set of NSArray and NSDictionary objects and I want to get the address of the instance, not the contents.
Trying [obj description] will tell me the contents but not address.
...
how would i go about uniquely naming an object and adding it to an nsmutablearray most likely in a for loop?
...
Hi, I have an app that has a login screen and splash screen. I want these screens to show up one after the other, and as such I have resulted to adding them as subviews to the app delegate's window property.
[window addSubview:mainViewController.view];
[window addSubview:loginViewController.view];
[window addSubview:splashScreenViewCont...
I'm trying to draw a semi-transparent shape over an image.
I've got a UIView which has it's layer's contents set to the image, with a CAShapeLayer sub-layer who's path is set to the shape. There are a few of these UIViews inside a parent UIView, which is the zoom child of a UIScrollView.
Everything is fine on the iPhone, but when I zoo...
How would I be able to mask an nsimageview in objective c? For example, having an nsimageview with rounded corners.
...
Do I need to make any code-level changes to play my videos over HTTP Live Streaming protocol? or is it more a server issue, where i need to re-encode the videos etc?
We've reviewed your application, but
cannot post this version to the App
Store because it is not using the HTTP
Live Streaming protocol, which is
required for br...
I wish to migrate from my version1 data model to version2, but once the migration is complete I wish to perform some custom migration code. How will I know if/when the migration occurs? Is there a migrationHasCompleed delegate method or notification?
For interests sake: The custom migration code I wish to perform resizes png's in the da...
Specifically, I have something like a game, with a menu screen made out of standard components. I want a button to switch to another view controller that the user will interact with for a while, then return to the menu screen. It seems like having the menu controller present the 'game' mode as a modal view controller is the most straight...
guys i want to set different subview in every section, i put my different view into NSMutableArray, so i hope i can access it depend on indexPath.section, this is my code :
for (int i =0; i<promoCount; i++) {
self.textView.text= [NSString stringWithFormat:@"text view :%d",i];
[self.arrayPromotions addObject:self.textView];
}
-...
Hello,
I`m doing something wrong here but I can't figure out what it is .
AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : NSObject <UIApplicationDelegate, UIScrollViewDelegate> {
UIWindow *window;
UIScrollView *scrollView;
UIPageControl *pageControl;
NSMutableArray *viewControllers;
UIView *flipsid...
Really quick and simple question: In Objective-C what is the difference between nonatomic and atomic? like when declaring properties like "@property (nonatomic, retain) id object"?
...