I have a multi-threaded Cocoa app that processes images. The program has a progress bar and some text showing how far along the process is. This all works great. However, sometimes the interface will just freeze up and everything will stop updating. The progress bar stops moving, and the text stops updating in the percentage counter. How...
Hi,
I know that question has been asked many times (for example : http://stackoverflow.com/questions/3450639/how-to-resize-tttablesubtitleitemcell), but I never found a simple answer to it : is there simple way to set the row height of a TTTableView ?
I really need to do this and I can't find any way to achieve it.
Thanks in advance
...
is it possible to assign a highres custom uitabbaritem image?
UIImage *img;
img = [UIImage imageNamed:@"[email protected]"];
self.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"more" image:img tag:5];
this doesnt work. is there a workaround, or even better an officel link / solution for this usecase?
thanks
alex
...
hello all,
in my universal app i need to check in the ViewDidLoad if the iDevices is iPad or iPhone is there an method or code ?
thanks
...
Hi all again! I want to create a game, that will use a level system. So i want to store my levels and to be able to change them during the game (to save the state). So i decided to use XML for storing levels. I found NSXmlParser class for reading from XML, but i can't find a writer to save the level state. In my game the level state and ...
So I have an Array "myArray" with NSNumbers and NSStrings. I need them in another View so i go like this:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
DetailViewController *details = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:nil];
details.subjectText = [[myArray ...
Hi guys, I have a plain ol UITableView, and I want its cells to have the delete button on the left. I know this is done using UITableViewCellStyleDelete.
I set up my tableview like so:
adjustmentTable.rowHeight = 35.0;
[adjustmentTable setEditing:YES animated:YES];
adjustmentTable.allowsSelectionDuringEditing = YES;
adjustmentTable.us...
hey all
in my app i have this method
-(void) Setinput:(int)input {
//value declared in .h
value = input;
switch(value){
case(0)
[b_do setTitle:@"Do" forState:(UIControlState )UIControlStateNormal];
[b_re setTitle:@"Re" forState:(UIControlState )UIControlStateNormal];
[b_me setTitle:@"Me" forState:(UIControlState...
Hi Guys, I'm trying to create an array out of the information inside a plist. My plist's root is of type array and inside this array is many dictionaries of data.
Here is what I've been trying to do so far:
//SET UP ARRAY OF PAGES
NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *finalPath = [path stringByAppendingPathC...
I use Objective-C bindings for YAJL in my Mac OS X application.
I could not find out how to insert a boolean value (to appear as key:true in the JSON string) in my NSDictionary:
NSMutableDictionary* jsonDict = [NSMutableDictionary dictionary];
[jsonDict setValue: YES forKey: @"key"];
The code above does not run (obviously because YE...
Are there any libraries that can help me?
I'm a Python programmer and have never used Objective C before, so the easier the better!
Thanks.
...
I'm making an iPhone program that can post to Twitter. I've downloaded Januus' PlainOAuth project, and I'm incorporating code into my own project. PlainOAuth is working fine, but my own project generates the following in the console when I post:
2010-10-18 21:53:09.990 TwitterTableView[18860:207] Status posted. HTTP result code: 401
O...
I am trying to test to see if an NSString has the letters "PDF" as the first 3 letters:
if ([[[profiles stringForKey:@"response"] characterAtIndex:0] isEqualToString:@"P"]) {
//TODO
}
I started with this approach to see if I could at least narrow it down to those strings that start with "P" but I am getting an erro...
I'm wondering if there's anywhere i can see what data is in my NSUserDefaults? Like, how does it works? Is there a file that stores in my iphone that contains all the data in the NSUserDefaults or is the file stores in different apps? If i have set [NSUserDefaults standardUserDefaults] setObject:someString forKey:@"someString"]; in app A...
I have some pins that the user can add. In the callout there is a button.
When the user presses the button, I want a new pin to drop in that location, and I want to get rid of the pin that the user pressed (different types of pins).
Basically the first pin is draggable, and when the user has found a proper location they will "lock" it....
I am looking for a way to easily format numbers for contacts. Many of the contacts have international numbers and i would like them to appear properly formatted.
I have noticed the iPhone contact list fails to perfectly handle all numbers. One of my team members is in Thailand, with a country code of 66. When I type in the number, the...
hi,
I have thousands of students records in Excel sheet. Now i will import that all data into Coradata [from Excel sheet to Coredata] and i will create my IPhone application using that coredata.
I dont have any idea, how to import excel file data into coredata.
If anybody knows the steps, please help me.
Thanks.
...
I have a ~/.gdbinit file which is loosely based on http://stackoverflow.com/questions/1237830/how-do-i-set-these-break-points-in-gdbinit. Allegedly, gdb is supposed to source ~/.gdbinit when it launches. However, it's not loading mine - I have to stop at an existing breakpoint and type in 'source ~/.gdbinit', and then it loads it. Is ...
Let's say I have an inheritance hierarchy as follows:
Device <- EthernetDevice <- WirelessDevice
So a Wireless device is a subclass of EthernetDevice, which is a subclass of Device.
Ok, so if a user creates a Device object and the user later decides that it's actually a Wireless device, how do I change the object's type? At the moment...
Hi all,
My modal view controller is not calling its dealloc method when it dismisses itself. I have presented it using :
ViewController * vl = [[ViewController alloc] initWithNibName:@"ViewController" bundle:[NSBundle mainBundle]];
self.viewLink = vl;
[mainMenu stop];
[mainMenu setCurrentTime:0.0];
[vl release];
[self presentModal...