hi all...
i want to know the contents in a directory either its documents or any other.
if there is a file or more than one i need those file names.
actually i am creating the export directory in documents directory..
and if export is empty then i am copying the zip file from main bundle to export folder
but the following code is not w...
I have a multi-section UITableView with custom header views that need to know their section index. I currently record the section number in the tag field of UIView when creating the custom view in viewForHeaderInSection. However, when a row is deleted, the UITableView does not reload the section header views for header views visible on...
For the iPad/iPhone can I detect when the user has the keypad lock turned on for inactivity protection?
If you have sensitive information in an application you will still often cache username/password and it is too disruptive to ask for a full username/password challenge after each period of inactivity.
I want to ensure that if the...
Which part of the app is it that "triggers" the iPad app as it's own app as opposed to running the iPhone version in a universal binary?
What do I need to change to make my app Universal, after clicking "Upgrade current Target for iPad"? My app runs on outside of the simulator, but my images are too small and my text is out of place. Wh...
Hi all,
i have 2 strings say string A and String B
i need to check if they both are eqaul or not,
so did this
if(a==b){
//they are equal
}
on console they both are showing same value say 'hey'.
but condition is not working for me.
is there any other condition to check if 2 strings are equal.
like there is on
if([A isEqualToString :...
Hey...
I'm trying to add animations to my game (iPhone app, using cocos2d).
The game was written in C++, and now I want to run it on iPhone, so most of the classes are in c++.
The thing looks like that.
I'm creating CCSprite,CCAction in obj-c class in init function, and then run CCAction on sprite.
And animation is working.
But I wan...
class Fahrzeug
{
[Entry ("Typ")]
public string typ;
[Entry ("Name")]
public string name;
[RadioSelection("ListOfString")]
public int selected=0;
public IList<string> ListOfString;
}
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear ...
Hi, Im trying to create a video that shows two videos one after the other using avcomposition on the iphone. This code works, however i can only see one of the videos for the entire duration of the newly created video
- (void) startEdit{
AVMutableComposition* mixComposition = [AVMutableComposition composition];
NSString* a_inputFile...
Hi all,
I have a drawrect method in my main UIView which draws 8 sprites every game tic. I want to seperate out each of these sprites into a seperate UIView.
I am trying to split out one sprite first as a test.
So far I have added a UIView as subview to my main view and set it's frame. This draws a black box on the view. My question i...
Hi,
I'm trying to change the height of the cells in my TTTableViewController from the three20 library.
I'm using TTTableRightImageItem and I want the height to be determined by the height of the image and not the fixed height.
Do I have to subclass TableCell? Is there a property I can just set?
Thanks
...
hi all,
another quick question. how to compare an string with the values of an array
for example
string a =@"abc";
compare = [[NSMutableArray arrayWithObjects:@"a",@"b",@"abc",@"d",nil]];
if string matches any of the element in array, i should show some alert or something.
regards
...
I have an entity called "Client," and each Client can have multiple "Properties." CoreData creates methods on the Client class for me for adding a new Property to the set, but I don't understand the purpose of this. Is there any difference at all between:
Property *newProperty = [NSEntityDescription insertNewObjectForEntityForName:@"Pro...
I want my UIImageView to detect both Tap and Swipe gesture. I've coded the touchesBegan method for Swipe detection, I just want to knw how can i make my ImageView detect both the gestures.
how to code the touchesBegan so that it can handle both of them??
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
if ([touches c...
If I append the @2x suffix to my own images, will iOS 4 automatically replace my images with the Retina compatible ones, or does that only apply to Apple defined images? (Icons, for example.)
...
Is there a documented example that shows the process of taking 3D models and animations created on blender, and displaying them as part of an iPhone/iPad application?
...
I know that sharing a single context between threads is bad news. I know that I can safely create and use a context with an offscreen framebuffer on a secondary thread when nothing is happening with GL on the main thread.
I haven't yet been able to find a definitive answer to the question of whether I can safely create two contexts on t...
Hi Guys,
I am trying to open a view in landscape by pushing on navigation controller but it always open in portrait.
First view is in portrait and when I click on a button then next view should be in landscape.
I am trying following code
Calling View:
ResultViewController *resultView = [[ResultViewController alloc] init];
[[self...
I'm wondering if there is a standard method for deploying applications originally written in Java, to iOS4 devices.
I assume that the application in original format cannot be deployed - is there perhaps an emulation layer that I can use, or a stable compiler that compiles Java to ObjectiveC?
...
NSMutableDictionary *dicta = [[NSMutableDictionary alloc] init];
[dicta writeToFile:[docDirectory stringByAppendingPathComponent:foo] atomically:YES];
I know only how write
W+ ?
...
I am writing an iPad application which uses a menu from a popover to change the view displayed. I have a root view controller which is always present and changes its content view to the sub view controllers, e.g Home, News, etc...
Now here's the problem: Let's say I'm on the Home controller in portrait mode, then go to the news controll...