I have an array of custom objects. One of the properties of these objects is an NSString. I want to sort by that property.
Because it is an NSString and not an NSNumber sorting is a little more difficult. Is there some kind of class method to help in this case? How should it be done?
...
First of all, I'm new to Objective-C and IPhone programming. There is somehing I can not get to work. I have a IPhone window application and in the MainWindow I have a button. I want to show another window when I click the button. I've bind the event with my controller. I just don't know how to show my other window (otherWindow) in th...
I'm trying to sort an array of people objects. The class looks like this.
Person
-------
name
phone
I have an NSMutableArray filled with these objects. I want to sort this array by the name of each person object.
This is the code I tried.
NSSortDescriptor *desc = [[NSSortDescriptor alloc] initWithKey: @"name" ascending: YES];
[pers...
I add button in UITableView cell. My code is
UIButton *btnView = [[UIButton buttonWithType:UIButtonTypeContactAdd] retain];
btnView.frame = CGRectMake(280.0, 8.0, 25.0, 25.0);
//[btnView setImage:[UIImage imageNamed:@"invite.png"] forState:UIControlStateNormal];
[btnView addTarget:self action:@selector(action:) forControlEv...
I have a UITabBarController that holds serveral tabs of which one tab (third Tab, inactive at startup) contains a very large image.
Since I want to allow quick reaction time once the app is running, I want to load the image during App startup.
How can I "pre-load" this third tab when the app is started without displaying it?
I though...
Alright, I'm reading the Aaron Hillegass book for Cocoa Programming, on the drag and drop chapter. I was following along with one of the lessons, and I typically change variable names as I find it keeps me a little more engaged and gives me a better understanding. I started getting this error, though:
2010-10-04 00:38:06.699 TypingTutor...
I'm working on transcoding image data from a file to a base64 encoded string and then back to bytes as the file is read using NSStream. I think I'm almost there, but I keep running into EXC_BAD_ACCESS at various points during the conversion.
I'm fairly new to the world of NSStream and buffers so feel free to let me know if I'm taking th...
I'm starting to build a real-time raytracer for iOS. I'm new to this raytracing thing, all I've done so far is write a rudimentary one in ObjC. It seems to me that a C-based raytracer is going to be faster than one written in ObjC, but the ObjC one will be far simpler, as object hierarchies come in very handy. Speed is very important,...
Hello to all Mobile Substrate plugin Devs/Masters,
I'm doing R&D in mobile substrate plugin development. I've an application with a UITableView with 50 records. And more impartant, it is NON EDITABLE. Now I wanna implement (is it hard?) a Mobile Substrate Addon for it, which makes my table is editable.
I already tried to add functions ...
I have a UIScrollView and added a UIView inside it, when I zoom it, is it possible to get the CGRect of the zoomed frame in relation to the original frame?
E.g. i have 800x600 frame, then i zoomed to {{50, 60}, {100, 100}} is it possible to programmatically get the zoomed frame?
...
Hi!
I am making an app where the user gets daily book recommendations from an online database. This all works just fine on iPhone and iPod Touch, but crashes (SIGABRT) on iPad on launch (default.png is shown first).
The error that is traced in the console is "Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NS...
NSString *titl = [database executeNonQuery:@"SELECT * FROM numberquestion"];
gives warning "initialization makes pointer from integer without a cast"
What is Wrong?
Table "numberquestion" contains only one string "twenty" of type TEXT
Thanks in advance
Ur suggestions are most welcome.
...
HI to all,
I am new in game developing part .Can any one help me out how to develop the game .Because Till toady i am on the normal iphone application developing .Can i develop the game by choosing window or view based application .If yes then give me some kind of sample code or link for that.
Thanks in advance
...
Hi,
Should I use traditional .NET methods or the MonoTouch .NET wrapper (1-1 mapping)?
Rephrase: Should I use .NET´s e.g WebClient object or NSURLRequest (in .NET)?
I can think of many situations where you have to choose between .NET and .NETified objective-c.
Is there a rule of thumb here? Because I don´t think it´s obvious.
BR
...
What is the cleanest way to set up a structure where you have an initial standard, full screen UIView, which transitions to a Tab Bar view?
...
How can i populate table view with local files.
What do i need to use. Will it be possible if i use NSFileManager and UITableView in combination ?
...
Hi.
I am importing a CSV file with a date format of month/day/year (e.g. 21/01/2007).
I am looping through the CSV some are working but some are coming out with the date 1 day previous with a time of 23:00? One of the dates that are not working would look like this:
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
...
hello. ive searched for 2 weeks solid on this and cant find an answer. ive posted on a couple of other sdk forums and nobody seems to have a clue...
i am building a tab bar app and i want to have 6 pages with 6 icons on the tab bar at the bottom. by default if you add more than 4 icons to the tab bar, when you build the app you get the ...
Hi Guy's,
I am using splash screen for my application when it starts begining and I made it to sleep for 4 seconds.My need is if user taps on the splash screen before the 4 seconds he should navigate to the next screen.Can any one suggest me with some ideas.
My code I tried was:
- (void)applicationDidFinishLaunching:(UIApplication *)a...
I'm having trouble writing a IPhone/IOS Obj-C SOAP client that talks to an application with a SOAP WS interface. The application uses a NuSOAP php webserver and encodes any payload above a certain size using gzip/deflate, whichever is enabled by the client.
I understand that NSURLConnection transparently decompresses any gzip encoded re...