according to this code
i dont understand about NSClassFromString
how did i know "viewControllerName"
can i use it from another source ?
could you please tell me more information how to use NSClassFromString?
UIViewController *viewController = [[NSClassFromString(viewControllerName) alloc] init];
...
I'd like to send a binary to a client without the source code.
How can here sign the app for distribution on it's own name without
recompiling everything (since he does not have the source code)
I'm not talking about adhoc distribution.
I've tried to codesign -f with another distribution profile but itunes
connect refuses it.
...
Suppose, if I'm able to connect to wifi as well as 3G, can I write the code to connect to a website using 3G (not through wifi) or vice versa?
...
Hi Guys,
I need a help from ur side.
Actually I need to call a method automatically when I click on to the textview.
Is there any delegate methods or any other process for this.
Anyone's help will be much appreciated.
Thank you,
Monish.
...
In my application I have large area (≈5000x5000pts) and I must allow user to see (+zoom, scroll) only its certain rectangular subregion with sides not necessarily parallel to area sides.
What is the best way to accomplish that?
What I am doing now:
Have a large UIView containing whole area (so its frame is 5000x5000) as a UIScrol...
This Code trows an EXC_BAD_ACCESS:
NSError* error;
if(![appdelegate.managedObjectContext countForFetchRequest:request error:&error]) {
DLog(@"Failed to save to data store: %@", [error localizedDescription]);
NSArray* detailedErrors = [[error userInfo] objectForKey:NSDetailedErrorsKey];
if(detailedErrors != n...
Hey guys,
As a fervent adept of IB, I created a UIToolBar (in IB of course) and added to it a few buttons.
So far so good ... but then I tried to move each of them to the right position but IB doesn't let me do it ... Each time I try to scroll them IB moves them back to the former position !
Is there a way to choose their position in...
I have a UIView, that contains a navigation bar, and UITableView. I implemented a UIViewController that implements a UITableViewDelegate. I over-rided the shouldAutorotateForInterfaceOrientation for the UIViewController to return YES for landscape and portrait mode. But the View does not seem to rotate. I did a similar thing without the ...
Hello,
I am developing new app. using titanium development for iphone but I have one problem to upload video to my webserver from my iphone app. , I did'nt get code to select vodeo file and code for uploading it at server side(PHP) can any body help me to solve this problem.
...
I have a PHP file with the following content that works perfectly on development ceritficates, but when I switch to a production certificate the PHP errors and gives the below message, but it only does this about 50% of the time. The other 50% it works. Anyone know why this might be happening?
<?php
// masked for security reason
$devic...
Hi,
I need some inspiration on how to build a nice progress bar for the iPhone.
What I want to build is a custom progress bar, as I've drawn here:
My approach up to now is to use a PNG (gray in the figure above) with a transparent rounded rectangle. Through this rectangle, users see the moving bar. It would be nice to draw this bar ...
How would I get returningResponse (into say, a NSString) from the following code:
NSURLResponse* response;
NSError* error;
NSData* result = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error];
I think I can get the info that I need into a string but I can't call anything on response because it'...
I am writing many files to disk, and I would like to split them up into different categories, but how do I do this?
...
When looking to get data from a web page whats the recommended method if the page does not provide a structured data feed? Am I right in thinking that its just a case of doing an NSURLRequest and then hacking what you need out of the responseData(NSData*)? I am not too concerned about the implementation in Xcode, I am more curious about ...
As par my app requirement, there is a couple of scenarios that I need to handle.
Scenario 1: To avoid piracy, I want to include some piece of code, whose job is sending both IMEI and Serial number of IPhone.
Scenario 2: At server side, I've a database, which has a list of both IMEI and Serial No info. Here I wanna validate both IMEI an...
Is there a way to remove duplicate (key-value) pairs from NSDictionary ?
EDIT:
My description was misleading, I have duplicate pairs e.g.
key1-value1
key1-value1
key2-value2
key1-value1
etc..
...
Hi everyone,
I would like to create an effect to a cell of a UITableView. The effect is: duplicate the cell and move the duplicated cell (the original stays at its place). My problem is to duplicate the cell...
I've tried:
Code:
UITableViewCell *animatedCell = [[UITableViewCell alloc] init];
animatedCell = [[self cellForRowAtIndexPath...
Coming from a C++ background, one thing that confuses me about Objective C is the fact that you can add a method to a class without actually specifying it in the class interface. So I had a barrage of questions:
Why would someone choose to not add the method in the class interface?
Is it simply because of visibility?
Methods without ...
I know that javascript, for example supports functions inside of functions, like so:
function doSomething(){
function doAnothingThing(){
//this function is redefined every time doSomething() is called and only exists inside doSomething()
}
//you can also stick it inside of conditions
if(yes){
function doSomethingE...
How do I use comma-separated-values received from a URL query in Objective-c?
when I query the URL I get csv such as ("OMRUAH=X",20.741,"3/16/2010","1:52pm",20.7226,20.7594).
How do I capture and use this for my application?
...