Wednesday, December 8, 2010
popViewController landscape modban fentrol lefele
Monday, December 6, 2010
UITextView font allitasa Interface Builder-ben
Thursday, November 4, 2010
portrait-landscape video mode
Videos on iPhone are recorded on Quicktime format. The Quicktime format always record videos on landscape and insert metadata on the archive with the orientation information (portrait or landscape) on the moment that was recorded.
...the Transformation Matrix that Apple applies to the Quicktime on the video stream property auxMatrix.
class-dump
SBFormattedPhoneNumber > rejection
CFShow([[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"]);
Wednesday, October 20, 2010
SpeedLimit
Simulator forgatasnak lelassitasa
Thursday, October 14, 2010
Tab Bar + Action Sheet
Friday, September 10, 2010
Async kep betoltes UITableViewCell-be
Friday, August 27, 2010
Wednesday, August 25, 2010
Monday, August 23, 2010
Bottom Bar elrejtese amikor betoltunk egy uj View-t.
Wednesday, August 11, 2010
Josh Highland: Don't use NSLog anymore!
Thursday, August 5, 2010
Wednesday, August 4, 2010
Monday, August 2, 2010
Thursday, July 29, 2010
UIApplicationExitsOnSuspend
Tuesday, July 27, 2010
MPMoviePlayerController vagy MPMoviePlayerViewController
John Muchow: Getting MPMoviePlayerController to Work with iOS4, 3.2 (iPad) and Earlier Versions of iPhone SDK
MPMoviePlayerController Class Reference
- backgroundColor - Get the view from the backgroundView property and set its color directly.
- movieControlMode - Use the “Accessing Movie Properties” property instead.
- MPMovieControlMode - Use the “MPMovieControlStyle” constants in conjunction with the controlStyle property instead.
- MPMoviePlayerContentPreloadDidFinishNotification - Use the MPMoviePlayerLoadStateDidChangeNotification notification to determine the readiness of the player.
Wednesday, July 14, 2010
UISplitViewController MasterView mutatasa portrait modban
[splitViewController setHidesMasterViewInPortrait:NO];
Az iPad alkalmazasoknak portrait es landscape modban is mukodniuk kell
Wednesday, May 26, 2010
Monday, May 3, 2010
Mike Ash: Dealing with Retain Cycles
Saturday, May 1, 2010
Validate Build Product
Friday, April 9, 2010
Renaming an Xcode project or executable.
Renaming a project in Xcode 3.x
This seems like it ought to be a simple process provided by Xcode but it is not. Here is how to do it.
1. Copy and rename the project folder
2. Inside the new project folder rename the files ending in .pch and .xcodeproj
3. Right click on .xcodeproj file (it is actually a folder) and select show contents. In the contents folder there should be a file ending in .pbxproj. Open This file in you favorite editor and replace all instances of the old project name with the new project name.
4. Delete the build folder
5. Open the Renamed Xcode project and right click (Control click) on the Target from the groups and files list. Select Info to open the properties panel.
6. Click on the build tab the select packaging from the collection pop up menu
7. Change the value in the product name build setting to the new name.
8. Do Build Clean all Targets.
Changing the executable name
1. Open the Xcode project and right click (Control click) on the Target from the groups and files list. Select Info to open the properties panel.
2. Click on the build tab the select packaging from the collection pop up menu
3. Change the value in the product name build setting to the new name.
4. Do Build Clean all Targets.
Friday, April 2, 2010
isToday
BOOL isToday(NSDate *date) {
NSCalendar *calendar = [NSCalendar currentCalendar];
unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;
NSDate *now = [NSDate date];
NSDateComponents *comp1 = [calendar components:unitFlags fromDate:date];
NSDateComponents *comp2 = [calendar components:unitFlags fromDate:now];
return [comp1 day] == [comp2 day] && [comp1 month] == [comp2 month] && [comp1 year] == [comp2 year];
}
Thursday, April 1, 2010
copy + paste > 2 release ugyanazon > EXC_BAD_ACCESS
Tuesday, March 30, 2010
Igy kell megkeresni az NSDocumentDirectory-t
The following example illustrates how you can use the NSSearchPathForDirectoriesInDomains
function to find the current user’s Documents directory:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
if ([paths count] > 0) { |
NSString *userDocumentsPath = [paths objectAtIndex:0]; |
// Implementation continues... |
NSSearchPathForDirectoriesInDomains
simply returns the path of the appropriate directory, it does not guarantee that the directory exists. If you want to perform operations such as writing to the directory, you may have to create it first.
Monday, March 29, 2010
Refresh UITableView UIActivityIndicatorView hasznalataval
Icon mellett lathato kis szam (badgeNumber) beallitasa
Tuesday, March 2, 2010
UIBarButtonItem title-jenek beallitasa
Monday, March 1, 2010
NSDate to NSString
NSDate *now = [NSDate date];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateStyle:NSDateFormatterFullStyle];
NSString *s = [dateFormat stringFromDate:now];
[dateFormat release];
Monday, February 22, 2010
The UIImagePickerController class supports portrait mode only.
Important: The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified, with one exception. In iPhone OS 3.1 and later, you can assign a custom view to the cameraOverlayView property and use that view to present additional information or manage the interactions between the camera interface and your code.
Wednesday, February 17, 2010
Hol vannak a provisioning profile-ok a gepen.
On XP C:/Documents and Settings/username/Application Data/Apple Computer/MobileDevice/
On Vista C:/Users/username/AppData/Roaming/Apple Computer/MobileDevice/
Tuesday, February 16, 2010
NSString to NSURL
- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)encoding
Utana:
Wednesday, February 10, 2010
Monday, January 18, 2010
UIView class-anak ellenorzese
if ([myView isKindOfClass:[UILabel class]]{
NSLog(@"myView is a UILabel");
}
NSString *className = NSStringFromClass([myView class]);
if (NSOrderedSame == [className compare:@"MPFullScreenTransportControls"]) {
//...
}
Friday, January 15, 2010
MPMoviePlayerController vezerlese - megoldas
Volt tobb rosz megoldasom:
-megneztem, hogy MPMoviePlayerPlaybackDidFinishNotification-ben meg tudom-e allapitan miert lett vege, de erre a 3.1.2-ben nincs lehetoseg (ugyanugy kuldi a notification-t, ha vege van a movie-nak, vagy ha a megnyomta a user a done, "prev", "next" gombok valamelyiket)
-Probaltam atlatszo UIButton-okkal letakarni ezeket a gombokat es a sajat gombjaim megnyomasat lekezelni, de ez sem jo, mert a default controlok eltunnek/megjelennek es errol sincsen semmi ertesites.
-Felmerult, hogy csupa sajat UIView-val megcsinalni, ami egyreszt nem lett volna tul szep, masreszt a timeline es a volume control gondot okozott volna.
Vegul ezt a megoldast talaltam (ami egyreszt nem menne at valoszinuleg az app store-on, masreszt a kovetkezo SDK-val valtozhat is. 3.1.2-vel probaltam):
Tovabbra is felteszem az osszes controlt az MPMoviePlayerController-re (MPMovieControlModeDefault), majd igy ferek hozzajuk a UIWindowDidBecomeKeyNotification-ra feliratkozva. (Eloszor a MPMoviePlayerContentPreloadDidFinishNotification-t akartam hasznalni, de az nem volt jo. Elsore ezt nem is vettem eszre, mert az elso movie betoltesenel eloszor a keyWindow notificaton jott meg es utana a preloadDidFinish, viszont a masodik play-nel mar forditva.):
id internal;
object_getInstanceVariable(player, "_internal", (void *)&internal);
id videoViewController;
object_getInstanceVariable(internal, "_videoViewController", (void*)&videoViewController);
UIView *overlayView = [videoViewController _overlayView]; //MPFullScreenVideoOverlay
[nextButton removeTarget:fstc action:nil forControlEvents:UIControlEventTouchUpInside];
[nextButton addTarget:self action:@selector(nextButtonClicked:) forControlEvents:UIControlEventTouchUpInside];