I just installed Xcode 3.2.3. I have a first generation iPhone that I use for testing purposes. It has 3.1.3 installed on the iPhone. On the build droplist near the upper left, there don't seem to be as many choices as there were on the older version i.e. base SDK to build against. Now there is only Device/Simulator, Debug/Release as...
I have a view-based application and I'd like to make a change to which UIView is displayed via my UIViewController. I set up an IBOutlet UIViewController *viewController and then linked it in Interface Builder, however whenever I make this link the app crashes right on startup with SIGKILL. Has anyone ever had any experience with this an...
i am displaying all my info like name. addresss,details and work in different cells of section
now is it possible to display them in one go like lets say i want to display them in area x=0,y=0,w=200,h=200 thats it
right now i am using this
switch(indexPath.section)
{
// cell.detailTextLabel.text
case 0:
cell.text = aBook.name;...
Hi,
I am wondering if there is a way to tell if the user hasn't typed in the UITextField say for 2 seconds.
If that's not possible, I'd like to know if there is a way to tell if the user made an error typing in the text field - example:
There is a UITextView which contains objects from an NSArray and the user has to type in the textf...
Hi,
When I use the UIImagePickerController to take a picture, after taking the picture it always takes me to a Preview screen where it says "Retake" or "Use". Is there any way to avoid going to this screen? Even when I use a custom overlay screen, and I set the picker.allowsEditing to FALSE, it still takes me to this screen. I've seen o...
This would be hard with pure SQL and I'm REALLY not sure how to do it with CoreData. Is it possible to come up with a predicate or do I need to do this programmatically?
Suppose (using the textbook example) I have a database of employees, some of whom are managers and some not. I want a list of managers who have an employee named "Joh...
I tried to write a similar hand drawing app. But the line drawing is always a little slow.
If you'd written a similar app and got the line drawing optimized, please explain a bit.
Dan's Note Taker Lite.
...
I was recently told casting [NSNull null] to (NSString*) was "terrible".
However, -[NSDictionary stringForKey:] method will return [NSNull null] if the key is not in the dictionary, and if I don't do the cast the compiler yells at me.
Am I missing something?
EDIT:
My mistake... and I think I might be beginning to see the problem....
Maybe I'm just missing it, but is there any documentation on Apple's not-yet-released Game Center? Am I missing it somewhere, or is the information only being given to select developers?
I'd like to build my frame work around using it when it's released, but with no documentation, it's hard to even think about what to do.
...
[CLLocationManager regionMonitoringAvailable] and [CLLocationManager regionMonitoringEnabled] both return YES. performing [locationManager maximumRegionMonitoringDistance] returns 0. Why?
(I have iOS 4.0.1, and this is using Ad-Hoc distribution)
...
I have a view controller for a view with six UITextFields. Whenever the user selects a text field, I need to scroll things upwards. So the text fields all set the view controller as their respective delegates. When the delegate method fires, it then calls a scroll method to scroll things up (if the keyboard is appearing) or down (if i...
Hi all,
I have a drill down navigation app with three levels of UIViewControllers.
In each view controller, I have a UITextField where I am trying to subclass the UIKeyboard for each. My question is where to "set" notifications and "unset" them.
I have the notifications:
[[NSNotificationCenter defaultCenter] addObserver:self selecto...
If i do this in detail view
labelb.textColor = [UIColor whiteColor];
labelb.backgroundColor = [UIColor clearColor];
then when i go back to main page and click on any row then details section are overlapping with previous details how to always clear cells when going back
...
this seems to work fine in the simulator but on the device the files are not being written.
here's the code.
-(void)saveOld{
NSArray *saveState = [NSArray arrayWithObjects:headArray,dropQArray,[NSNumber numberWithInt:dropLimit],[NSNumber numberWithInt:dropCount],[NSNumber numberWithInt:score],[NSNumber numberWithInt:level],[NSNumber n...
Hello,
I have a UIImage and I would like to put its data in a file and and then used a mapped file to save some memory. Apparently, the UIImage data is private and it's not possible to access it. Would you have any suggestions to solve that?
Thanks!
...
If I have a class
@interface Foo {
NSString *temp;
}
@property(nonatomic, copy) NSString *temp;
@end
I understand that upon assignment, the old temp will get released and the new one will be assigned using temp = [newTemp copy]. And going by memory management rules, you are supposed to do [temp release] in the dealloc method of...
I am going to use Address Book as my app's data source for use to add new contact or select a contact. The contact is mainly for company or organization, but it can be a person.
For adding a new contact, I would like to show a list of contacts, like people pick control:
However, I cannot figure out to change Cancel to Add, and Groups...
i've had difficulty finding examples/tutorials/information for this. i'd like to have an 'add to favorites' button in my application. this would take a cell from one tableview and populate that cell into the 'favorites' tableview. is core data the proper direction for approaching this? i've seen some hints about using nsmutablearray and/...
Here's a screenshot of keynote on the ipad:
The toolbar is pretty flat - it doesn't have a vertical gradient the way the builtin toolbar styles do. I've played with the different styles, the translucent flag, and the tint color, and haven't been able to replicate it.
How are they doing this? How would I implement it?
...
Is there a way to retrieve what width and height the iphone camera is sampling at? I am targetting iOS4 and don't know what the width or height are until I get into the didOutputSampleBuffer delegate.
Here is the code that actually gets the width and height in the delegate:
- (void) captureOutput:(AVCaptureOutput*)captureOutput did...