Here is the model I have:
http://www.girardet.ch/model.png
My goal is to retrieve all the Quotes with these criterias:
belong to a specific theme : the name_en attribute of Themes
order by relevancy
filtered by Authors (with the alias attribute of Authors)
Here is my code:
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init...
My understanding is that a 'convenience' method such as [nsnumber initWithInt] should create a copy of the indicated class, initialized to the desired value.
minutesLeft=[NSNumber initWithInt:((timeLeft)%60)];
Timeleft is an integer, so initWithInt should be working, and the result should be that minutesLeft (a property set to retain)...
I would like to be able to format a string in a label or textfield so that i can change the font color and size of certain keywords. does anyone know how to do this? is it possible to find the actual physical dimensions of a CharcterSet as well?
...
I'm pulling together a few utility methods for testing and I'd like to be able to pop up a view from within an arbitrary method - one that doesn't necessarily know about any UIViewControllers or windows. Is this possible?
For example I'm preparing a custom location manager shim so that I can manually inject location data when I'm testin...
I have a UIView & I want that view's layer to be a continuously looping animation but I'm having some trouble getting started. I have the following in my view subclass:
+ (Class)layerClass {
return [CALayer class];
}
Then in my viewController I have:
CAGradientLayer *gradient = [CAGradientLayer layer];
[gradient setColors:[NSArray ...
I added an index search to a core data backed UITableView. the search works fine, however after navigating back to the tableView I get this error:
-[NSSQLRow controllerDidChangeContent:]: unrecognized selector sent to instance 0x815edf0
I can post more code if this is too little information to go on.
thanks for any help
...
Hello Everyone,
I need to populate an array with BLOB type data retrived from SQLite DB.At present i am using NSData to display the image,but i want to put the image in an array and display it in the UITableView
How can i do this,please help me
...
Is it ok to cast a NSdictionary object to NSMutableDictionary?
NSDictionary *dict;
NSMutableDictionary *mDict = (NSMutableDictionary *)dict;
Tried this and it worked fine.
...
I have a viewcontroller which contains a tableview. I call another view via pushViewController. When I get back to my original viewController I hope to redraw the table, but viewWillAppear is never called.
Any other ideas?
...
Hello everyone,
I have following code, instrument indicate that the pushViewController method has 32 bytes memory leak on device. Could you please kindly help check what rule I break? Should I change some "retain" to "assign" for declaration? Thanks in advance!
@interface GuideNewsViewController : UIViewController <UITableViewDataSourc...
Hi,
Im trying to get the xAuthTwitterEngine Demo to run on Iphone simulator 3.0.
I changed the Base SDK in Project settings to Iphone Device 3.0 and Iphone OS deployment Target to Iphone OS 3.0
But my build fails with 18 errors. I dont understand why.
It has something to do with libOAuth.a and OAtoken.
Can someone help me out here?
Than...
the app I've installed on an iPhone 3G device periodically crashes. I'm wondering if it's the device or the code. the code works fine on the simulator.
I have other apps from the app store that do the same thing. e.g. the stackoverflow app - whenever I do a search the app crashes. I've even had the iPod app crash too.
I've restored th...
Hello.
I've been working on a game for a bit, I'm now trying to get it working with OS4+. I'm struggling with saving data, my method worked perfectly for OS3. I have a singleton:
#import "GameState.h"
@implementation GameState
@synthesize gStarted;
@synthesize gLevel;
static GameState* _sharedGameState = nil;
+(GameState*)shared...
I have NSAutoreleasePool leaked object on a MKMapView. should I be concerned about this? I can't seem to get rid of it. I also noticed that the same leak occurs in apple's CurrentAddress sample code app
link text
thanks for any help
...
Hi
Ok, I am not sure how to ask this question so that it can be understood...
I need to store some schedules on a server (Ruby on Rails) from a iPhone. On the iPhone device the time is relative to the device timezone settings, but on the server I need to store the data in the servers local timezone correctly so that the scheduled event...
Hi,
I have an image encoded in BASE64 which I retrieve from a server and than load into a UIWebView
with :
[webViewer loadData:[NSData decodeBase64ForString:imageData] MIMEType:@"image" textEncodingName:@"ASCII" baseURL:nil];
The image loads fine but when the image is bigger than my webviewer, the user cannot zoom in and
out by pinch...
Hi,
well i have search a lot for iphone material to get started ,
but i found most of the stuff that divided either in iphone development or in learning objective C only.
Can someone please send me links/ebooks/articles/videos where once can learn objective c and iphone
together ?
...
Hey guys,
I would like to create an app for iPhone which should be able to connect to a server and download an xml file. The file should be freshly generated from a database every time it is requested.
As an example, imagine an app that recommends books to the user, where the recommendations are generated by the server upon each reques...
Hi,
I have a MKMapView with several annotations. These annotations differ from varios location all over Sweden. What I want to do is to zoom the map so all annotations show.
I do not want to position the map to my position (although I do want to show it), but want all annotations to show and center the map according those locations.
I...
hi there, i am trying to zip a file into a subfolder in my iphone app.
NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *dir = [path objectAtIndex:0];
NSString *storeunzipfiles = [dir stringByAppendingPathComponent:@"/MyFolder"];
if (![[NSFileManager defaultMa...