在我的ios应用程序中,我需要将放在/ var/mobile/Library/Preferences/xxx中的存档解压缩到例如/ var/mobile/Library/Preferences/tmp中.
我的问题是,当我启动它时:
unzip /var/mobile/Library/Preferences/xxx/archive.zip -d /var/mobile/Library/Preferences/tmp/
Run Code Online (Sandbox Code Playgroud)
在tmp文件夹中,有所有归档路径:/ var/mobile/Library/Preferences/tmp/var/mobile/Library/Preferences/xxx/archive/...
我怎么能只为/ var/mobile/Library/Preferences/tmp/archive/...而不是所有存档路径进入目标目录?
提前致谢
播放音频时是否可以更改AVPlayerViewController实例的背景?
当我锁定我的设备时,我可以看到正确显示专辑图片的音乐控件,但是当我的应用程序中显示AVPlayerViewController时,我只能看到具有代表当前正在播放的QuickTime的背景的控件.
以下是我的称呼方式:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
NSURL *url=[NSURL fileURLWithPath:clickedPath];
AVPlayer *player = [AVPlayer playerWithURL:url];
AVPlayerViewController *controller = [[AVPlayerViewController alloc] init];
[self presentViewController:controller animated:YES completion:nil];
controller.player = player;
[player play];
Run Code Online (Sandbox Code Playgroud) 我的java程序中有三个按钮可以播放三种不同的声音.看看我的代码:
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.File;
import java.io.IOException;
import javax.sound.sampled.*;
import java.awt.datatransfer.*;
public class VueEditeurEmail extends JFrame implements ActionListener {
private JPanel container = new JPanel();
private JPanel containerHaut = new JPanel();
private JPanel containerAction = new JPanel();
private JButton boutonEnvoyer = new JButton("Envoi");
private JButton boutonAnnuler = new JButton("Annuler");
private JButton contacts = new JButton("Contacts");
private JButton coller = new JButton("Coller");
private JTextArea textArea = new JTextArea();
private ChampsTexte champs1 = new ChampsTexte("Expéditeur :", "");
private …
Run Code Online (Sandbox Code Playgroud)