How to use performSelector:onThread:withObject:waitUntilDone:? here in onthread i have to use other thread not main thread. How to create other thread? give me some sample code.
I want to record the sound of my iPhone-App. So like someone is playing something on a iPhone instrument and after that you can hear it.
Is it possible without the micro?
Having troubles finding a good way to get a string from a text file (separated by line breaks) randomly.
I want to do a setStringValue:@"random string from file here";
pretty much. Thanks in advance.
I have a .h when I map all the image files names and xib names with #defines. For example, if I have an image called "buttonBackground.png" I map it in my .h as
#define BUTTON_BACKGROUND_PNG_FILE @"buttonBackground.png"
It's possible to detect when a resource is added to the bundle and create the correspond define with a script?
I am creating an SDK for a client that includes predefined view controllers. What is the recommended way to package everything (static lib, .xib(s), and .png(s)) for easy use?
SDKs that I've used (e.g. Pinch Media) do a good job of just providing a .h and .a file that expose only user accessible functionality and hiding everything else. As I read…
i have created uitableview and cell in uitableview are accessarychecked . i have implemented an action named -(IBAction) checkBoxClicked . what i need is that i wanted to show accessarychecked cell values in alertbox when i click on button this is the code which i have written
#import "ViewController.h"
@implementation ViewController…
i have implemented UIWebView in my application but i default address is "192.168.1.1" but it is not open default it and i have tried with "http://www.google.com" it is working fine.
[iview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"192.168.1.1"]]];
it doesn't working and it is working with
[iview…
I'm fetching a list of identifiers from my server, then passing them off in a products request to Apple. Here's my code, and below is the error I'm getting.
The iPhone 4 is not crashing when this happens.
-(void)didReceiveData:(NSArray *)data {
NSLog(@"Received Identifiers: %@",data);
NSSet *productIdentifiers = [NSSet…
I use
connect(socketfd, (struct sockaddr*)&remoteAddr, sizeof(remoteAddr))
to connect my iPhone to a computer (over WIFI) and it works fine so far.
However if the computer is out of reach, my iPhone tries to establish a connection for more than a min.
Is there a posibility to set the time manually out to a new…
I've got the situation where the cycle of loading and then closing a document eats up a few Mb of RAM. This memory isn't being leaked as something owns it and cleans it up when the app exits (Visual Leak Detector and the Mac Leaks tool show agreement on this). However, I'd like to find out where it's going. I'm…
hi,
i encounter an issue with my application.
On one hand when my app launches, the first view displayed is a tableview within a tableviewcontroller.
On the other hand my app calls a web service to collect data. These methods are in MyAppDelegate\applicationDidFinishLaunching.
The thing is that my tableview is…
Hi, is there any way to have an image inside a customized cell to have rounded corners?
I've been trying to do it changing values in IB and I couldn't.
Thanks a lot!
When I press my stop button to stop the timer it just resets to the original time and begins counting down again. I have looked everywhere and all I have found is "invalidate" and it isn't working. I want the time to stop when I hit stop and the label to display the original time. I also turned off automatic…
Hi, This is a simple question:
I have 2 different view controllers, and each one has its own data stored in its .m file.
I want to take a value, for instance, an integer value (int i=3;) that is declared in ViewController1 and pass it to ViewController2, so I will be able to use that value in the second…
I am working on building an SDK which will be built out as a statically linked library that third party applications can then drop in to their applications. Inside of this SDK, I was looking to be able to perform some "localization." Basically, I would like for the code in my SDK to be able to access…
So this question:Warning-used as the name of the previous parameter rather than as part of the selector
answers part of my problem, but I really don't want anything to change inside this method and I'm a bit confused on how this works. Here's the whole method:
-(void) SetRightWrong:(sqzWord *)word:…
I'm having a hard time working this one out but I think it should be pretty simple. Basically, I have this method which talks to a webservice and I need to return some data from the sub method, the "authCode". What am I doing wrong? How can I get the authCode out of the manager, or can I create a…
I am new to objective c programming. I am currently trying to insert data into mysql database. I have read a couple links on this and could not find the exact answer I am looking for.
Here is what I am trying to do:
I have my app that user inputs a name in a text field and once the press the…
I making an application to view videos form youtube, and I think it is very easy to write a code to make the user be able download the videos and save it in the documents folder of the application, my questions are:
1) is it legal to do this, and is there any concern of the application being…
Ok so im at my wit's end here. I have tried every imaginable thing to get rid of these errors
heres my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
/*
…
I have tried using an outlet to connect my tableview controller to my object, setting the nib name in IB and setting the class in IB but it still wont link? I know this as im trying to set my table view to 'grouped'
Thanks very much.
Hi,
I am trying to get to grips with programmatically configuring views. I have a UIViewController and want to add a UIButton to its view.
Well, I created the button:
UIButton *newViewButton = [[UIButton alloc] initWithFrame:CGRectMake(baseX + viewPlusX, baseY + viewPlusY, viewWidth,…